Resolve an issue with script command strnpcinfo
* Resolved the NPC map name lookup for floating NPC returning arbitrary values.
This commit is contained in:
parent
73a8ceb947
commit
a7c8751a10
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user