diff options
author | megamage <none@none> | 2009-01-17 14:03:18 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-17 14:03:18 -0600 |
commit | 8f22b65443e12de4be9a9d994f3240129331c36d (patch) | |
tree | 7f3a76ab4e28961219a10b1a9a920d6f5f6d529b /src | |
parent | c5dfe7dac27a0441192af758dc55e6c71c83ccb4 (diff) |
*Add assert to try to find the reason of crash.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index c415d0a9d1b..6a3efdf266f 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -257,6 +257,9 @@ Unit::~Unit() RemoveAllDynObjects(); if(m_charmInfo) delete m_charmInfo; + + RemoveAllAuras(); + assert(m_Auras.begin() == m_Auras.end()); } void Unit::Update( uint32 p_time ) |