[7360] Use defines instead harcoded item prototype array sizes. Author: VladimirMangos
--HG-- branch : trunk
This commit is contained in:
1 parent
f503f320ad
commit
61b999fd3a
9 files changed
+37
-26
No files matched your search
@@ -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))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user