mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-21 23:27:14 -04:00
*Add a crashlog before an assert.
--HG-- branch : trunk
This commit is contained in:
+6
-2
@@ -87,11 +87,15 @@ Object::~Object( )
|
||||
|
||||
if(IsInWorld())
|
||||
{
|
||||
sLog.outCrash("Object::~Object - guid="UI64FMTD", typeid=%d deleted but still in world!!", GetGUID(), GetTypeId());
|
||||
sLog.outCrash("Object::~Object - guid="UI64FMTD", typeid=%d, entry=%u deleted but still in world!!", GetGUID(), GetTypeId(), GetEntry());
|
||||
assert(false);
|
||||
}
|
||||
|
||||
assert(!m_objectUpdated);
|
||||
if(m_objectUpdated)
|
||||
{
|
||||
sLog.outCrash("Object::~Object - guid="UI64FMTD", typeid=%d, entry=%u deleted but still in update list!!", GetGUID(), GetTypeId(), GetEntry());
|
||||
assert(false);
|
||||
}
|
||||
|
||||
if(m_uint32Values)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user