*Add an assert in ~worldobject

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-13 11:47:38 -05:00
parent 6b19d80f72
commit 9cff946d8d
2 changed files with 2 additions and 4 deletions

View File

@@ -80,17 +80,15 @@ Object::Object( ) : m_PackGUID(sizeof(uint64)+1)
m_PackGUID.appendPackGUID(0);
}
/*
WorldObject::~WorldObject()
{
if(m_currMap)
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);
ResetMap();
}
}
*/
Object::~Object( )
{