summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorgepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-31 13:19:16 +0000
committergepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-31 13:19:16 +0000
commit1769d69d1caa636ccdf8fab9e80e50fb1624b38d (patch)
treea8dd5375361c6bfb3202d8a8dc58dd46c56de1f7 /src/map
parent9fbf9932e874845247f285e5c1c4f6c15b4cea58 (diff)
downloadhercules-1769d69d1caa636ccdf8fab9e80e50fb1624b38d.tar.gz
hercules-1769d69d1caa636ccdf8fab9e80e50fb1624b38d.tar.bz2
hercules-1769d69d1caa636ccdf8fab9e80e50fb1624b38d.tar.xz
hercules-1769d69d1caa636ccdf8fab9e80e50fb1624b38d.zip
Added proper `mob_delete_timer` (dynamic mobs feature) cleanup on map-server shutdown (bugreport:2944).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15528 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/map.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c
index afe385e33..6103d9f77 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -3469,6 +3469,8 @@ void do_final(void)
if(map[i].block) aFree(map[i].block);
if(map[i].block_mob) aFree(map[i].block_mob);
if(battle_config.dynamic_mobs) { //Dynamic mobs flag by [random]
+ if(map[i].mob_delete_timer != INVALID_TIMER)
+ delete_timer(map[i].mob_delete_timer, map_removemobs_timer);
for (j=0; j<MAX_MOB_LIST_PER_MAP; j++)
if (map[i].moblist[j]) aFree(map[i].moblist[j]);
}