aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Spells
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2017-06-11 18:06:39 -0300
committerariel- <ariel-@users.noreply.github.com>2017-06-11 18:06:39 -0300
commitd6cae113c64f1024b11493ee68e06d9b3052bfab (patch)
treeb1985ef4baa404ea469854a16d060abfa0bfe339 /src/server/scripts/Spells
parent6b493808068d293aaae1fa50b6acbc1abee7b81f (diff)
Core/Scripts: fix some /W4 warnings
Diffstat (limited to 'src/server/scripts/Spells')
-rw-r--r--src/server/scripts/Spells/spell_paladin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Spells/spell_paladin.cpp b/src/server/scripts/Spells/spell_paladin.cpp
index 9bead494492..b259db332a9 100644
--- a/src/server/scripts/Spells/spell_paladin.cpp
+++ b/src/server/scripts/Spells/spell_paladin.cpp
@@ -1317,8 +1317,8 @@ class spell_pal_infusion_of_light : public SpellScriptLoader
int32 bp0 = CalculatePct(healInfo->GetHeal() / duration, pct);
// Item - Paladin T9 Holy 4P Bonus
- if (AuraEffect const* aurEff = target->GetAuraEffect(SPELL_PALADIN_T9_HOLY_4P_BONUS, 0))
- AddPct(bp0, aurEff->GetAmount());
+ if (AuraEffect const* bonus = target->GetAuraEffect(SPELL_PALADIN_T9_HOLY_4P_BONUS, 0))
+ AddPct(bp0, bonus->GetAmount());
target->CastCustomSpell(SPELL_PALADIN_FLASH_OF_LIGHT_PROC, SPELLVALUE_BASE_POINT0, bp0, procTarget, true, nullptr, aurEff);
}