diff options
-rw-r--r-- | src/emap/script_buildins.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c index 94ed92d..4797220 100644 --- a/src/emap/script_buildins.c +++ b/src/emap/script_buildins.c @@ -2351,14 +2351,14 @@ BUILDIN(isInstance) BUILDIN(getNpcSubtype) { - TBL_NPC *nd = map->id2bl(st->oid); + TBL_NPC *nd = map->id2nd(st->oid); if (script_hasdata(st, 2)) { if (script_isstringtype(st, 2)) { nd = npc->name2id(script_getstr(st, 2)); } else { - nd = map->id2bl(script_getnum(st, 2)); + nd = map->id2nd(script_getnum(st, 2)); } } |