diff options
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 87ceb8afb..bbd0363e1 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1463,6 +1463,11 @@ static void npc_parsename(struct npc_data* nd, const char* name, const char* sta char this_mapname[32]; char other_mapname[32]; int i = 0; + + //TODO: the debug message is broken, if nd->exname == NULL + //dnd is left uninitialized, and then is printed as that! + if (*nd->exname == '\0') + dnd = nd; //Dumb anti-crash measure since I am not sure what this piece of code is supposed to do. do { ++i; |