diff --git a/src/common/kernel/magic.c b/src/common/kernel/magic.c index 9071a5632..ccbb173f0 100644 --- a/src/common/kernel/magic.c +++ b/src/common/kernel/magic.c @@ -2810,7 +2810,7 @@ magic(void) } if (range > 1024) { /* (2^10) weiter als 10 Regionen entfernt */ ADDMSG(&u->faction->msgs, msg_message("spellfail::nolevel", - "mage region order target", u, u->region, so->s, + "mage region command target", u, u->region, so->s, gc_add(strdup(regionid(target_r))))); continue; } @@ -2821,7 +2821,7 @@ magic(void) if (ilevel!=level) { level = ilevel; ADDMSG(&u->faction->msgs, msg_message("spellfail::nolevel", - "mage region order", u, u->region, so->s)); + "mage region command", u, u->region, so->s)); } } /* Vertrautenmagie */ diff --git a/src/common/util/language.c b/src/common/util/language.c index 8c3086bcb..41ce5d890 100644 --- a/src/common/util/language.c +++ b/src/common/util/language.c @@ -142,7 +142,12 @@ locale_setstring(locale * lang, const char * key, const char * value) find->key = strdup(key); find->str = strdup(value); } - else assert(!strcmp(find->str, value) || !"duplicate string for key"); + else { + if (strcmp(find->str, value)==0) { + log_error(("Duplicate key %s for '%s' and '%s'\n", key, value, find->str)); + } + assert(!strcmp(find->str, value) || !"duplicate string for key"); + } } const char *