summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-25 20:55:19 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-25 20:55:19 +0000
commit7d65a46135c8b8536f48f58ff2a0a26fd40932b6 (patch)
tree113f90c2f3cca9d2ab8f5a76eda84fb04822ac5b /src/map/npc.c
parent0da16e5615bfe3a964ee049c374e7154dab2049d (diff)
downloadhercules-7d65a46135c8b8536f48f58ff2a0a26fd40932b6.tar.gz
hercules-7d65a46135c8b8536f48f58ff2a0a26fd40932b6.tar.bz2
hercules-7d65a46135c8b8536f48f58ff2a0a26fd40932b6.tar.xz
hercules-7d65a46135c8b8536f48f58ff2a0a26fd40932b6.zip
- 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
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c4
1 files changed, 2 insertions, 2 deletions
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");
}