diff --git a/res/core/messages.xml b/res/core/messages.xml
index c78b279d1..6dbb8974a 100644
--- a/res/core/messages.xml
+++ b/res/core/messages.xml
@@ -914,7 +914,7 @@
- "$if($transparent," befindet sich"," versperrt") ${object} $if($transparent,""," die Sicht")."
+ "$if($transparent," befindet sich"," versperrt") ${object}$if($transparent,""," die Sicht")."
"$if($transparent," there is"," sight is blocked by ") ${object}."
diff --git a/src/report.c b/src/report.c
index f735e41ea..b49cdea9b 100644
--- a/src/report.c
+++ b/src/report.c
@@ -515,31 +515,27 @@ nr_curses_i(stream *out, int indent, const faction *viewer, objtype_t typ, const
{
for (; a; a = a->next) {
char buf[4096];
- message *msg;
+ message *msg = 0;
if (fval(a->type, ATF_CURSE)) {
curse *c = (curse *)a->data.v;
self = curse_cansee(c, viewer, typ, obj, self);
msg = msg_curse(c, obj, typ, self);
-
- if (msg) {
- newline(out);
- nr_render(msg, viewer->locale, buf, sizeof(buf), viewer);
- paragraph(out, buf, indent, 2, 0);
- msg_release(msg);
- }
}
else if (a->type == &at_effect && self) {
effect_data *data = (effect_data *)a->data.v;
if (data->value > 0) {
msg = msg_message("nr_potion_effect", "potion left",
data->type->itype->rtype, data->value);
- nr_render(msg, viewer->locale, buf, sizeof(buf), viewer);
- paragraph(out, buf, indent, 2, 0);
- msg_release(msg);
}
}
+ if (msg) {
+ newline(out);
+ nr_render(msg, viewer->locale, buf, sizeof(buf), viewer);
+ paragraph(out, buf, indent, 2, 0);
+ msg_release(msg);
+ }
}
}