mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[9862] Defines for some spelentry arrays.
* Move and rename MAX_REAGENTS to DBC Strcuture.h. It used only afore access to SpellEntry field and so part of strcuture definition. * Add MAX_SPELL_TOTEMS and MAX_SPELL_TOTEM_CATEGORIES for same reasons, and use in code.
This commit is contained in:
parent
ff2cda6af1
commit
6fb07911f9
6 changed files with 23 additions and 22 deletions
|
|
@ -17435,7 +17435,7 @@ void Player::RemovePet(Pet* pet, PetSaveMode mode, bool returnreagent)
|
|||
|
||||
if(spellInfo)
|
||||
{
|
||||
for(uint32 i = 0; i < MAX_REAGENTS; ++i)
|
||||
for(uint32 i = 0; i < MAX_SPELL_REAGENTS; ++i)
|
||||
{
|
||||
if(spellInfo->Reagent[i] > 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue