diff options
| author | Machiavelli <none@none> | 2009-06-17 17:14:25 +0200 | 
|---|---|---|
| committer | Machiavelli <none@none> | 2009-06-17 17:14:25 +0200 | 
| commit | d9057a8189abf953569f62c6a2b0e1aeb242fb32 (patch) | |
| tree | 8b43dad76a1fea951fab889010d843d33fff6d0a /src/game/Object.cpp | |
| parent | 87790145c548bfa18d1c964f062268905ab7137c (diff) | |
| parent | e405e6f9ede8c9ce5db647fdffb1dd6c008856eb (diff) | |
*Merge
--HG--
branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
| -rw-r--r-- | src/game/Object.cpp | 15 | 
1 files changed, 10 insertions, 5 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp index 0e7eed9bff0..3561621f0bd 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -82,16 +82,21 @@ Object::Object( ) : m_PackGUID(sizeof(uint64)+1)  Object::~Object( )  { -    //if(m_objectUpdated) -    //    ObjectAccessor::Instance().RemoveUpdateObject(this); -      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()); +        if(isType(TYPEMASK_ITEM)) +            sLog.outCrash("Item slot %u", ((Item*)this)->GetSlot());          assert(false); +        RemoveFromWorld();      } -    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); +        ObjectAccessor::Instance().RemoveUpdateObject(this); +    }      if(m_uint32Values)      {  | 
