aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2016-04-08 18:37:59 +0200
committerShauren <shauren.trinity@gmail.com>2016-04-08 18:37:59 +0200
commit14ed59301941269ea0472e7a779a557a1a0aac4b (patch)
tree37e1d38acf34fc19960ebbd60400acf903202603 /src
parent78576c1e63bf8b6a10f041c07e03e5d9f78bceed (diff)
Build fix
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_holiday.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/scripts/Spells/spell_holiday.cpp b/src/server/scripts/Spells/spell_holiday.cpp
index 4f85f0e1c89..352421a7188 100644
--- a/src/server/scripts/Spells/spell_holiday.cpp
+++ b/src/server/scripts/Spells/spell_holiday.cpp
@@ -472,7 +472,8 @@ class spell_pilgrims_bounty_feast_on : public SpellScriptLoader
if (Aura* aura = caster->GetAura(GetEffectValue()))
{
if (aura->GetStackAmount() == 1)
- caster->RemoveAurasDueToSpell(aura->GetSpellInfo()->Effects[EFFECT_0].CalcValue());
+ if (SpellEffectInfo const* effect = aura->GetSpellInfo()->GetEffect(EFFECT_0))
+ caster->RemoveAurasDueToSpell(effect->CalcValue());
aura->ModStackAmount(-1);
}
}