*Try to fix a crash bug.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-24 22:25:22 -06:00
parent 8413356d0e
commit fe08615d17
3 changed files with 9 additions and 20 deletions

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;
}
}