*Fix single target auras related crash

*Apply aura stacking rules to m_ownedAuras holder.

--HG--
branch : trunk
This commit is contained in:
QAston committed 2010-01-16 15:12:21 +01:00
1 parent 72277c583b
commit 69b2900137
5 files changed
+185 -118

No files matched your search

+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