diff options
| author | megamage <none@none> | 2009-03-02 16:47:20 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-03-02 16:47:20 -0600 |
| commit | 61b999fd3a70eff6ccf3d460534c21ba3a3f9408 (patch) | |
| tree | c1f52ca7a48d33995ef01e83fd35481bf0f81f6b /src/game/SpellHandler.cpp | |
| parent | f503f320ad6db899cb966fadd5757c71d0c005b1 (diff) | |
[7360] Use defines instead harcoded item prototype array sizes. Author: VladimirMangos
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellHandler.cpp')
| -rw-r--r-- | src/game/SpellHandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/SpellHandler.cpp b/src/game/SpellHandler.cpp index 3c739a85bb0..449025f0346 100644 --- a/src/game/SpellHandler.cpp +++ b/src/game/SpellHandler.cpp @@ -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)) { |
