diff options
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/npc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index b5dd3f42a..d58f4ec66 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -756,10 +756,10 @@ int npc_gettimerevent_tick(struct npc_data *nd) //If within a timer, set the tick value to the time passed since the beginning of the timer.
if (sd) {
if(sd->npc_timer_id != -1)
- tick = DIFF_TICK(gettick(), nd->u.scr.timertick);
+ tick += DIFF_TICK(gettick(), nd->u.scr.timertick);
} else {
if(nd->u.scr.timerid!=-1)
- tick = DIFF_TICK(gettick(), nd->u.scr.timertick);
+ tick += DIFF_TICK(gettick(), nd->u.scr.timertick);
}
return tick;
|