aboutsummaryrefslogtreecommitdiff
path: root/src/game/ObjectGridLoader.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-24 22:25:22 -0600
committermegamage <none@none>2009-03-24 22:25:22 -0600
commitfe08615d17c5d6830d7a622818002a7517df6311 (patch)
tree3529a0f3bfc214a8737e67529348e549ebd128c2 /src/game/ObjectGridLoader.cpp
parent8413356d0ef5231117ff0717d08fed9b1ab90002 (diff)
*Try to fix a crash bug.
--HG-- branch : trunk
Diffstat (limited to 'src/game/ObjectGridLoader.cpp')
-rw-r--r--src/game/ObjectGridLoader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/ObjectGridLoader.cpp b/src/game/ObjectGridLoader.cpp
index 14b1865cfa7..0c1de5859e9 100644
--- a/src/game/ObjectGridLoader.cpp
+++ b/src/game/ObjectGridLoader.cpp
@@ -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;
}
}