*Fix single target auras related crash

*Apply aura stacking rules to m_ownedAuras holder.

--HG--
branch : trunk
This commit is contained in:
QAston
2010-01-16 15:12:21 +01:00
parent 72277c583b
commit 69b2900137
5 changed files with 185 additions and 118 deletions
+2 -1
View File
@@ -120,7 +120,8 @@ void DynamicObject::Update(uint32 p_time)
if (!m_aura->IsRemoved())
m_aura->UpdateOwner(p_time, this);
if (m_aura->IsRemoved() || m_aura->IsExpired())
// m_aura may be set to null in Unit::RemoveGameObject call
if (m_aura && (m_aura->IsRemoved() || m_aura->IsExpired()))
expired = true;
}
else