From 14ed59301941269ea0472e7a779a557a1a0aac4b Mon Sep 17 00:00:00 2001 From: Shauren Date: Fri, 8 Apr 2016 18:37:59 +0200 Subject: Build fix --- src/server/scripts/Spells/spell_holiday.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/server/scripts') 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); } } -- cgit v1.2.3