diff options
Diffstat (limited to 'src/game/Unit.cpp')
| -rw-r--r-- | src/game/Unit.cpp | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 3df54dfe6c7..39daf01415a 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -187,6 +187,11 @@ Unit::~Unit()      RemoveAllDynObjects();      if(m_charmInfo) delete m_charmInfo; + +    assert(!m_attacking); +    assert(m_attackers.empty()); +    assert(m_sharedVision.empty()); +    assert(m_Controlled.empty());  }  void Unit::Update( uint32 p_time ) @@ -11941,7 +11946,7 @@ Player* Unit::GetSpellModOwner() const  void Unit::SendPetCastFail(uint32 spellid, SpellCastResult msg)  {      if(msg == SPELL_CAST_OK) -        return;  +        return;      Unit *owner = GetCharmerOrOwner();      if(!owner || owner->GetTypeId() != TYPEID_PLAYER)  | 
