From 85a5a433bb9e188340532a8312bcb0f6eb930378 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 7 Nov 2014 23:16:00 +0100 Subject: [PATCH] writing reports should not depend on the monster faction, this is silly. --- src/reports.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/reports.c b/src/reports.c index 29159d0c2..54e072a46 100644 --- a/src/reports.c +++ b/src/reports.c @@ -2337,14 +2337,13 @@ static void eval_int36(struct opstack **stack, const void *userdata) static void log_orders(const struct message *msg) { - faction *f = get_monsters(); char buffer[4096]; int i; for (i = 0; i != msg->type->nparameters; ++i) { if (msg->type->types[i]->copy == &var_copy_order) { const char *section = nr_section(msg); - nr_render(msg, f ? f->locale : default_locale, buffer, sizeof(buffer), f); + nr_render(msg, default_locale, buffer, sizeof(buffer), NULL); log_debug("MESSAGE [%s]: %s\n", section, buffer); break; }