aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Spells
diff options
context:
space:
mode:
authorSpp <spp@jorge.gr>2012-09-18 11:33:09 +0200
committerSpp <spp@jorge.gr>2012-09-18 11:35:18 +0200
commitc4d4beff3b26bfa4a34b7d520b0b96899fc5dd69 (patch)
treeeb249959b4d3061283bcd9b084cd8df0ac6c6bc8 /src/server/scripts/Spells
parentb5af7c5c2e8331d310205cf5741d4d9ecce02a4a (diff)
Warning fixes and some minor changes here and there
- Added GetAchievementPoints to AchievementMgr
Diffstat (limited to 'src/server/scripts/Spells')
-rw-r--r--src/server/scripts/Spells/spell_warrior.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Spells/spell_warrior.cpp b/src/server/scripts/Spells/spell_warrior.cpp
index 7b0952dac7b..891505f1ec8 100644
--- a/src/server/scripts/Spells/spell_warrior.cpp
+++ b/src/server/scripts/Spells/spell_warrior.cpp
@@ -222,7 +222,7 @@ class spell_warr_execute : public SpellScriptLoader
void HandleEffect(SpellEffIndex /*effIndex*/)
{
Unit* caster = GetCaster();
- if (Unit* target = GetHitUnit())
+ if (GetHitUnit())
{
SpellInfo const* spellInfo = GetSpellInfo();
int32 rageUsed = std::min<int32>(200 - spellInfo->CalcPowerCost(caster, SpellSchoolMask(spellInfo->SchoolMask)), caster->GetPower(POWER_RAGE));