From c9ddf9258d159dc8aa5a4e29cd83c158c8479d24 Mon Sep 17 00:00:00 2001 From: megamage Date: Thu, 13 Aug 2009 17:02:17 -0500 Subject: *Do not assert !map for non-corpse worldobjects. --HG-- branch : trunk --- src/game/Object.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/game/Object.cpp') diff --git a/src/game/Object.cpp b/src/game/Object.cpp index 334790402b9..2e3aa8e0528 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -82,10 +82,14 @@ Object::Object( ) : m_PackGUID(sizeof(uint64)+1) WorldObject::~WorldObject() { + // this may happen because there are many !create/delete if(m_isWorldObject && m_currMap) { - sLog.outCrash("Object::~Object - guid="UI64FMTD", typeid=%d, entry=%u deleted but still in map!!", GetGUID(), GetTypeId(), GetEntry()); - assert(false); + if(GetTypeId() == TYPEID_CORPSE) + { + sLog.outCrash("Object::~Object Corpse guid="UI64FMTD", type=%d, entry=%u deleted but still in map!!", GetGUID(), ((Corpse*)this)->GetType(), GetEntry()); + assert(false); + } ResetMap(); } } -- cgit v1.2.3