Fix build (gcc) and fix warnings

This commit is contained in:
Spp committed 2012-02-22 09:15:57 +01:00
1 parent 6870ee5848
commit 1e246cb66c
12 files changed
+44 -19

No files matched your search

+1 -1
View File
@@ -255,7 +255,7 @@ class spell_pri_reflective_shield_trigger : public SpellScriptLoader
if (dmgInfo.GetAttacker() == target)
return;
if (Unit* caster = GetCaster())
if (GetCaster())
if (AuraEffect* talentAurEff = target->GetAuraEffectOfRankedSpell(PRIEST_SPELL_REFLECTIVE_SHIELD_R1, EFFECT_0))
{
int32 bp = CalculatePctN(absorbAmount, talentAurEff->GetAmount());