Core/Spells: Fixed compile warnings added in previous revision

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-09-28 18:57:19 +02:00
parent 956f9115dc
commit fe84720720
+4 -4
View File
@@ -6287,12 +6287,12 @@ SpellCastResult Spell::CheckItems()
return SPELL_FAILED_LOWLEVEL; return SPELL_FAILED_LOWLEVEL;
bool isItemUsable = false; 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(); ItemPrototype const *proto = targetItem->GetProto();
if (proto->Spells[i].SpellId && ( if (proto->Spells[e].SpellId && (
proto->Spells[i].SpellTrigger == ITEM_SPELLTRIGGER_ON_USE || proto->Spells[e].SpellTrigger == ITEM_SPELLTRIGGER_ON_USE ||
proto->Spells[i].SpellTrigger == ITEM_SPELLTRIGGER_ON_NO_DELAY_USE)) proto->Spells[e].SpellTrigger == ITEM_SPELLTRIGGER_ON_NO_DELAY_USE))
{ {
isItemUsable = true; isItemUsable = true;
break; break;