diff options
author | QAston <none@none> | 2010-01-18 18:42:36 +0100 |
---|---|---|
committer | QAston <none@none> | 2010-01-18 18:42:36 +0100 |
commit | 9a7746c9fcfe97edb044bde559b14d09d12f8e13 (patch) | |
tree | 320a6b34bd163aa605eb03b7fbb98e6dd248885b /src/game/Object.cpp | |
parent | 844c09fc6153f99247318d521e68a47ba4d7d094 (diff) |
*Add some debug info to trac reason of assertion fail in Unit destructor.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r-- | src/game/Object.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp index eeb96db5798..28c50a9e38e 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -1759,6 +1759,7 @@ TempSummon *Map::SummonCreature(uint32 entry, const Position &pos, SummonPropert if(!summon->Create(objmgr.GenerateLowGuid(HIGHGUID_UNIT), this, phase, entry, vehId, team, pos.GetPositionX(), pos.GetPositionY(), pos.GetPositionZ(), pos.GetOrientation())) { + summon->CleanupsBeforeDelete(); delete summon; return NULL; } |