mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
*Add a crashlog before an assert.
--HG-- branch : trunk
This commit is contained in:
@@ -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