From 8f22b65443e12de4be9a9d994f3240129331c36d Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 17 Jan 2009 14:03:18 -0600 Subject: *Add assert to try to find the reason of crash. --HG-- branch : trunk --- src/game/Unit.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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 ) -- cgit v1.2.3