From 9a7746c9fcfe97edb044bde559b14d09d12f8e13 Mon Sep 17 00:00:00 2001 From: QAston Date: Mon, 18 Jan 2010 18:42:36 +0100 Subject: *Add some debug info to trac reason of assertion fail in Unit destructor. --HG-- branch : trunk --- src/game/Object.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/game/Object.cpp') 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; } -- cgit v1.2.3