writing reports should not depend on the monster faction, this is silly.

This commit is contained in:
Enno Rehling 2014-11-07 23:16:00 +01:00
parent e9084d9678
commit 85a5a433bb
1 changed files with 1 additions and 2 deletions

View File

@ -2337,14 +2337,13 @@ static void eval_int36(struct opstack **stack, const void *userdata)
static void log_orders(const struct message *msg) static void log_orders(const struct message *msg)
{ {
faction *f = get_monsters();
char buffer[4096]; char buffer[4096];
int i; int i;
for (i = 0; i != msg->type->nparameters; ++i) { for (i = 0; i != msg->type->nparameters; ++i) {
if (msg->type->types[i]->copy == &var_copy_order) { if (msg->type->types[i]->copy == &var_copy_order) {
const char *section = nr_section(msg); 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); log_debug("MESSAGE [%s]: %s\n", section, buffer);
break; break;
} }