aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-10 09:53:59 -0600
committermegamage <none@none>2009-02-10 09:53:59 -0600
commitf62e062b0d25b18f919ad6d9e4dea5bdf2cca544 (patch)
tree332ed8e95f675289e08aedc098c3a12e6ca78a49
parent452e0971eb0ccf8dfd9e19d1cd66c59290e6ac9f (diff)
*Fix a crash in _AddAura
--HG-- branch : trunk
-rw-r--r--src/game/SpellAuras.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index cf7ad71245e..efc7417f551 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -832,6 +832,8 @@ void Aura::_AddAura()
AuraSlotEntry * entry;
entry=m_target->GetVisibleAura(slot);
+ if(!entry)
+ return;
entry->m_Flags |= (1 << GetEffIndex());
entry->m_slotAuras[GetEffIndex()]=this;