From 9de6139a3940c9107e347278a539603d94816409 Mon Sep 17 00:00:00 2001 From: QAston Date: Wed, 6 May 2009 18:22:46 +0200 Subject: [PATCH] *Fix a crash. --HG-- branch : trunk --- src/game/Unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index c9ef312537..85b5c04e54 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -186,6 +186,7 @@ Unit::~Unit() RemoveAllGameObjects(); RemoveAllDynObjects(); + _DeleteAuras(); if(m_charmInfo) delete m_charmInfo; @@ -11417,7 +11418,6 @@ void Unit::CleanupsBeforeDelete() //A unit may be in removelist and not in world, but it is still in grid //and may have some references during delete RemoveAllAuras(); - _DeleteAuras(); InterruptNonMeleeSpells(true); m_Events.KillAllEvents(false); // non-delatable (currently casted spells) will not deleted now but it will deleted at call in Map::RemoveAllObjectsInRemoveList CombatStop();