Browse Source

Fix issue #1651
- The timer event wasn't updated on last tick event

Atemo 8 years ago
parent
commit
d3f0aec324
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/map/npc.c

+ 1 - 1
src/map/npc.c

@@ -811,7 +811,7 @@ int npc_settimerevent_tick(struct npc_data* nd, int newtimer)
 	nd->u.scr.rid = 0;
 
 	// Check if timer is started
-	flag = (nd->u.scr.timerid != INVALID_TIMER);
+	flag = (nd->u.scr.timerid != INVALID_TIMER || nd->u.scr.timertick);
 
 	if( flag ) npc_timerevent_stop(nd);
 	nd->u.scr.timer = newtimer;