diff options
author | joschiwald <joschiwald.trinity@gmail.com> | 2014-12-29 01:32:55 +0100 |
---|---|---|
committer | joschiwald <joschiwald.trinity@gmail.com> | 2014-12-29 01:32:55 +0100 |
commit | e8f97ec80a0ca0a1cf55aa5e2a2fd9a43ec19766 (patch) | |
tree | e148896e0d846bcc49f13fffa5e4db75fd87192b /src/server/game/Spells/Spell.cpp | |
parent | 9ecc578cb187cc1ae0fd454883dab0cd058d3807 (diff) |
Core: fixed typos from previous commit and kill more warnings
Diffstat (limited to 'src/server/game/Spells/Spell.cpp')
-rw-r--r-- | src/server/game/Spells/Spell.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index 72653d700ec..d38181daab9 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -4773,7 +4773,7 @@ void Spell::TakeReagents() // if CastItem is also spell reagent if (castItemTemplate && castItemTemplate->GetId() == itemid) { - for (int s = 0; s < castItemTemplate->Effects.size(); ++s) + for (uint8 s = 0; s < castItemTemplate->Effects.size(); ++s) { // CastItem will be used up and does not count as reagent int32 charges = m_CastItem->GetSpellCharges(s); @@ -6516,7 +6516,7 @@ SpellCastResult Spell::CheckItems() if (Item* pitem = player->GetItemByEntry(item_id)) { - for (int x = 0; x < pProto->Effects.size(); ++x) + for (uint8 x = 0; x < pProto->Effects.size(); ++x) if (pProto->Effects[x].Charges != 0 && pitem->GetSpellCharges(x) == pProto->Effects[x].Charges) return SPELL_FAILED_ITEM_AT_MAX_CHARGES; } @@ -6813,7 +6813,7 @@ bool Spell::CheckEffectTarget(GameObject const* target, SpellEffectInfo const* e return true; } -bool Spell::CheckEffectTarget(Item const* target, SpellEffectInfo const* effect) const +bool Spell::CheckEffectTarget(Item const* /*target*/, SpellEffectInfo const* effect) const { if (!effect->IsEffect()) return false; @@ -7150,6 +7150,8 @@ void Spell::SetSpellValue(SpellValueMod mod, int32 value) case SPELLVALUE_AURA_STACK: m_spellValue->AuraStackAmount = uint8(value); break; + default: + break; } } |