Add some comments for the previous crash fix. Thanks to Amit86.

This commit is contained in:
megamage
2011-11-11 14:20:49 -05:00
parent 9e3b4fe409
commit f47c0e661c

View File

@@ -207,6 +207,8 @@ void ObjectGridUnloader::Visit(GridRefManager<T> &m)
obj->SaveRespawnTime();
//Some creatures may summon other temp summons in CleanupsBeforeDelete()
//So we need this even after cleaner (maybe we can remove cleaner)
//Example: Flame Leviathan Turret 33139 is summoned when a creature is deleted
//TODO: Check if that script has the correct logic. Do we really need to summons something before deleting?
obj->CleanupsBeforeDelete();
///- object will get delinked from the manager when deleted
delete obj;