瀏覽代碼

Follow up r16769, initnpctimer should reset the timer.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16784 54d463be-8e91-2dee-dedb-b68131a5f0ec
greenboxal2 12 年之前
父節點
當前提交
7a0f936c35
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/map/script.c

+ 1 - 0
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;