From 7d65a46135c8b8536f48f58ff2a0a26fd40932b6 Mon Sep 17 00:00:00 2001 From: skotlex Date: Wed, 25 Oct 2006 20:55:19 +0000 Subject: - Some cleaning of the pc_eventtimer and pc enqueue code, it should fix some memory leaks when the event counter does not matches with the actual number of queued timers during logout. - Minor typos, corrections, etc. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9072 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/npc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/npc.c') diff --git a/src/map/npc.c b/src/map/npc.c index 89538052d..4e982b69d 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -182,8 +182,8 @@ int npc_event_dequeue(struct map_session_data *sd) // clear the last event sd->eventqueue[MAX_EVENTQUEUE-1][0]=0; // add the timer - sd->eventtimer[ev]=add_timer(gettick()+100,pc_eventtimer,sd->bl.id,(int)name);//!!todo!! - + sd->eventtimer[ev]=add_timer(gettick()+100,pc_eventtimer,sd->bl.id,(int)name);//TODO: Someone wrote here "!!todo!!", but what the hell is missing? + sd->eventcount++; }else ShowWarning("npc_event_dequeue: event timer is full !\n"); } -- cgit v1.2.3-70-g09d2