summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2020-04-27 12:06:21 -0400
committergumi <git@gumi.ca>2020-04-27 12:06:21 -0400
commit40fa6d72362f1aea9f67e628b10c510234aa2f23 (patch)
treed961ea8966f645c639354777350d602ad7eadbf3
parentb3f44a8e8ef767617c5e09ba689c16aa3c00d448 (diff)
downloadplugin-40fa6d72362f1aea9f67e628b10c510234aa2f23.tar.gz
plugin-40fa6d72362f1aea9f67e628b10c510234aa2f23.tar.bz2
plugin-40fa6d72362f1aea9f67e628b10c510234aa2f23.tar.xz
plugin-40fa6d72362f1aea9f67e628b10c510234aa2f23.zip
fix an incompatible assignment in buildin getnpcsubtype()
-rw-r--r--src/emap/script_buildins.c4
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));
}
}