summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorgreenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-16 16:08:02 +0000
committergreenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-16 16:08:02 +0000
commit77912311a7ad7151e4a2476cac73f3ec181d27bd (patch)
tree2b3dfafc010a38a85a61a203bbfe08bbb1e5e451 /src/map
parentea003abfbcf5f3ddf982585c5136d7cf343a2b88 (diff)
downloadhercules-77912311a7ad7151e4a2476cac73f3ec181d27bd.tar.gz
hercules-77912311a7ad7151e4a2476cac73f3ec181d27bd.tar.bz2
hercules-77912311a7ad7151e4a2476cac73f3ec181d27bd.tar.xz
hercules-77912311a7ad7151e4a2476cac73f3ec181d27bd.zip
Follow up r16769, initnpctimer should reset the timer.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16784 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/script.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 36b83215a..bfc186322 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -9084,6 +9084,7 @@ BUILDIN_FUNC(initnpctimer)
nd->u.scr.rid = sd->bl.id;
}
+ nd->u.scr.timertick = 0;
npc_settimerevent_tick(nd,0);
npc_timerevent_start(nd, st->rid);
return 0;