summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-02-02 08:28:34 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-02-02 08:28:34 +0000
commit86a9bdcc2bfc6f38c1ca68013a6c2af370fe5495 (patch)
treec911937e5d6dbd7c26e7d0f22e7c7b965a8e4203 /src/map/skill.c
parent97eec218a3f43cd6929ed2a4d530140dc352d515 (diff)
downloadhercules-86a9bdcc2bfc6f38c1ca68013a6c2af370fe5495.tar.gz
hercules-86a9bdcc2bfc6f38c1ca68013a6c2af370fe5495.tar.bz2
hercules-86a9bdcc2bfc6f38c1ca68013a6c2af370fe5495.tar.xz
hercules-86a9bdcc2bfc6f38c1ca68013a6c2af370fe5495.zip
Fixing r13503...
- Added missing id_db removal calls for all flooritem objects (bugreport:2729) - Added missing destruction of skillunit_db on mapserver exit git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13505 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index c7bd3f998..9d03be3d9 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -9587,8 +9587,9 @@ int skill_delunit (struct skill_unit* unit)
unit->group=NULL;
unit->alive=0;
- idb_remove(skillunit_db, unit->bl.id);
map_delblock(&unit->bl); // don't free yet
+ map_deliddb(&unit->bl);
+ idb_remove(skillunit_db, unit->bl.id);
if(--group->alive_count==0)
skill_delunitgroup(NULL, group);
@@ -11404,6 +11405,7 @@ int do_final_skill(void)
{
db_destroy(skilldb_name2id);
db_destroy(group_db);
+ db_destroy(skillunit_db);
ers_destroy(skill_unit_ers);
ers_destroy(skill_timer_ers);
return 0;