summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-18 17:07:16 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-18 17:07:16 +0000
commit03c08ba5b46044f1aa0ae396f1ae5011f201f3a7 (patch)
treeb137ad0e743459ef936a96360d533998d8089161 /src/map/mob.c
parent006962cfa01113b6f127bc72f693282164d4a42d (diff)
downloadhercules-03c08ba5b46044f1aa0ae396f1ae5011f201f3a7.tar.gz
hercules-03c08ba5b46044f1aa0ae396f1ae5011f201f3a7.tar.bz2
hercules-03c08ba5b46044f1aa0ae396f1ae5011f201f3a7.tar.xz
hercules-03c08ba5b46044f1aa0ae396f1ae5011f201f3a7.zip
- Fixed the delete_timer (@summons, alchemist plants) not invoking unit_free, hence causing memory leaks and the like.
- Applied jA's patch to fix a bug in the scripting engine in regards to priority of operators. Thanks to End of Exam for the information. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6161 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 5889903ed..55faf7ca1 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1484,7 +1484,9 @@ int mob_timer_delete(int tid, unsigned int tick, int id, int data)
if (bl->type != BL_MOB)
return 0; //??
//for Alchemist CANNIBALIZE [Lupus]
+ ((TBL_MOB*)bl)->deletetimer = -1;
unit_remove_map(bl, 3);
+ unit_free(bl);
return 0;
}