aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <none@none>2010-09-28 18:57:19 +0200
committerShauren <none@none>2010-09-28 18:57:19 +0200
commitfe84720720776b4f8b2fdb25e404678cecb99974 (patch)
tree00f6631965c6c1aff9a1c05be4f2d059d39e9797 /src
parent956f9115dc7f19f5e802f26db992b5d46338d91f (diff)
Core/Spells: Fixed compile warnings added in previous revision
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/Spell.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index 094b3d1778e..2b8efd0bf1f 100644
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -6287,12 +6287,12 @@ SpellCastResult Spell::CheckItems()
return SPELL_FAILED_LOWLEVEL;
bool isItemUsable = false;
- for (uint8 i = 0; i < MAX_ITEM_PROTO_SPELLS; ++i)
+ for (uint8 e = 0; e < MAX_ITEM_PROTO_SPELLS; ++e)
{
ItemPrototype const *proto = targetItem->GetProto();
- if (proto->Spells[i].SpellId && (
- proto->Spells[i].SpellTrigger == ITEM_SPELLTRIGGER_ON_USE ||
- proto->Spells[i].SpellTrigger == ITEM_SPELLTRIGGER_ON_NO_DELAY_USE))
+ if (proto->Spells[e].SpellId && (
+ proto->Spells[e].SpellTrigger == ITEM_SPELLTRIGGER_ON_USE ||
+ proto->Spells[e].SpellTrigger == ITEM_SPELLTRIGGER_ON_NO_DELAY_USE))
{
isItemUsable = true;
break;