From ff4241e5eb34877be668e27473867e45f85df126 Mon Sep 17 00:00:00 2001 From: megamage Date: Fri, 29 May 2009 16:52:35 -0500 Subject: *Fix a crash caused by removing areaaura. Thanks to arthurcik --HG-- branch : trunk --- src/game/SpellAuras.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 217074b743f..da2f2b8d7d8 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -695,7 +695,10 @@ void AreaAuraEffect::Update(uint32 diff) Unit *source = m_target; Unit *caster = GetCaster(); if (!caster) + { m_target->RemoveAura(GetParentAura()); + return; + } if( !source->hasUnitState(UNIT_STAT_ISOLATED) ) { -- cgit v1.2.3