aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-16 17:58:44 -0500
committermegamage <none@none>2009-06-16 17:58:44 -0500
commitd906ea05d6deefadb150d21ff80f0d74657515a8 (patch)
tree384970b45da35627e7cf146066a4754aab769419 /src
parentab06dcc442dffeaf21478b49d6a4d0ba9d9d1f9c (diff)
*Add a crashlog before an assert.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Object.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp
index 0e7eed9bff0..1afd3ac3ae7 100644
--- a/src/game/Object.cpp
+++ b/src/game/Object.cpp
@@ -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)
{