aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
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
parentb5af7c5c2e8331d310205cf5741d4d9ecce02a4a (diff)
Warning fixes and some minor changes here and there
- Added GetAchievementPoints to AchievementMgr
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp2
-rw-r--r--src/server/scripts/Spells/spell_warrior.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp b/src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp
index 108d2118a25..55f257e5ecc 100644
--- a/src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp
+++ b/src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp
@@ -46,7 +46,7 @@ class boss_mandokir : public CreatureScript
{
}
- void KilledUnit(Unit* victim)
+ void KilledUnit(Unit* /*victim*/)
{
}
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));