aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellAuras.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index feb00ba12eb..15627df8a2f 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -461,8 +461,8 @@ Aura::~Aura()
//Delete references to aura
if(GetAuraSlot() < MAX_AURAS && m_target && m_target->GetVisibleAura(GetAuraSlot()))
{
- if (AuraSlotEntry * entry = m_target->GetVisibleAura(GetAuraSlot()));
- entry->m_slotAuras[GetEffIndex()]=NULL;
+ AuraSlotEntry * entry = m_target->GetVisibleAura(GetAuraSlot());
+ entry->m_slotAuras[GetEffIndex()]=NULL;
}
}