mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[7360] Use defines instead harcoded item prototype array sizes.
This commit is contained in:
parent
4994611582
commit
b9326100ea
9 changed files with 37 additions and 26 deletions
|
|
@ -94,7 +94,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))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue