Resolve an issue with script command strnpcinfo

* Resolved the NPC map name lookup for floating NPC returning arbitrary values.
This commit is contained in:
aleos89 2017-06-26 14:12:24 -04:00
parent 73a8ceb947
commit a7c8751a10

View File

@ -8501,6 +8501,7 @@ BUILDIN_FUNC(strnpcinfo)
name = aStrdup(nd->exname);
break;
case 4: // map name
if (nd->bl.m >= 0)
name = aStrdup(map[nd->bl.m].name);
break;
}