[7360] Use defines instead harcoded item prototype array sizes. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-03-02 16:47:20 -06:00
1 parent f503f320ad
commit 61b999fd3a
9 files changed
+37 -26

No files matched your search

+1 -1
View File
@@ -97,7 +97,7 @@ void WorldSession::HandleUseItemOpcode(WorldPacket& recvPacket)
if (pUser->isInCombat())
{
for(int i = 0; i < 5; ++i)
for(int i = 0; i < MAX_ITEM_PROTO_SPELLS; ++i)
{
if (SpellEntry const *spellInfo = sSpellStore.LookupEntry(proto->Spells[i].SpellId))
{