*Fix a crash caused by removing areaaura. Thanks to arthurcik

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-29 16:52:35 -05:00
parent 89f4c1c444
commit ff4241e5eb

View File

@@ -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) )
{