aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellAuras.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/SpellAuras.cpp')
-rw-r--r--src/game/SpellAuras.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index f086175987e..c87fc9b89fc 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -677,9 +677,11 @@ void Aura::Update(uint32 diff)
if (IS_PLAYER_GUID(GetCasterGUID()))
{
caster = GetCaster();
- modSpell = ((Player*)caster)->FindCurrentSpellBySpellId(GetId());
if (caster)
+ {
+ modSpell = ((Player*)caster)->FindCurrentSpellBySpellId(GetId());
((Player*)caster)->SetSpellModTakingSpell(modSpell, true);
+ }
}
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
if (m_partAuras[i])