*Try to fix a crash bug.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-03-24 22:25:22 -06:00
1 parent 8413356d0e
commit fe08615d17
3 files changed
+9 -20

No files matched your search

+1
View File
@@ -285,6 +285,7 @@ ObjectGridUnloader::Visit(CreatureMapType &m)
if(!sWorld.getConfig(CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY))
obj->SaveRespawnTime();
///- object will get delinked from the manager when deleted
obj->CleanupsBeforeDelete();
delete obj;
}
}