summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2015-08-20 12:19:42 -0400
committermekolat <mekolat@users.noreply.github.com>2016-04-15 11:46:02 -0400
commita5058369055b26bdba51806f3e2457a067670f7a (patch)
treef36ade7248853f253d82cfd4fd855f5c0f6e2c35 /src
parent150e3098dee0b8e72238436f25c37b14c83410aa (diff)
downloadtmwa-a5058369055b26bdba51806f3e2457a067670f7a.tar.gz
tmwa-a5058369055b26bdba51806f3e2457a067670f7a.tar.bz2
tmwa-a5058369055b26bdba51806f3e2457a067670f7a.tar.xz
tmwa-a5058369055b26bdba51806f3e2457a067670f7a.zip
make addnpctimer attach to the target npc instead of oid
Diffstat (limited to 'src')
-rw-r--r--src/map/script-fun.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script-fun.cpp b/src/map/script-fun.cpp
index 0c6ebb8..3a5226e 100644
--- a/src/map/script-fun.cpp
+++ b/src/map/script-fun.cpp
@@ -2256,7 +2256,7 @@ void builtin_addnpctimer(ScriptState *st)
ZString event_ = ZString(conv_str(st, &AARG(1)));
NpcEvent event;
extract(event_, &event);
- npc_addeventtimer(map_id2bl(st->oid), tick, event);
+ npc_addeventtimer(npc_name2id(event.npc), tick, event);
}
/*==========================================