mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +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
|
|
@ -2709,7 +2709,7 @@ bool SpellMgr::IsSpellValid(SpellEntry const* spellInfo, Player* pl, bool msg)
|
|||
|
||||
if(need_check_reagents)
|
||||
{
|
||||
for(int j = 0; j < MAX_REAGENTS; ++j)
|
||||
for(int j = 0; j < MAX_SPELL_REAGENTS; ++j)
|
||||
{
|
||||
if(spellInfo->Reagent[j] > 0 && !ObjectMgr::GetItemPrototype( spellInfo->Reagent[j] ))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue