mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7361] 2 lost cases from prev. commit.
This commit is contained in:
parent
b9326100ea
commit
cea44af521
2 changed files with 3 additions and 3 deletions
|
|
@ -3534,7 +3534,7 @@ void Spell::TakeReagents()
|
|||
ItemPrototype const *proto = m_CastItem->GetProto();
|
||||
if( proto && proto->ItemId == itemid )
|
||||
{
|
||||
for(int s=0;s<5;s++)
|
||||
for(int s=0;s < MAX_ITEM_PROTO_SPELLS; ++s)
|
||||
{
|
||||
// CastItem will be used up and does not count as reagent
|
||||
int32 charges = m_CastItem->GetSpellCharges(s);
|
||||
|
|
@ -4999,7 +4999,7 @@ uint8 Spell::CheckItems()
|
|||
ItemPrototype const *proto = m_CastItem->GetProto();
|
||||
if(!proto)
|
||||
return SPELL_FAILED_ITEM_NOT_READY;
|
||||
for(int s=0;s<5;s++)
|
||||
for(int s=0;s < MAX_ITEM_PROTO_SPELLS; ++s)
|
||||
{
|
||||
// CastItem will be used up and does not count as reagent
|
||||
int32 charges = m_CastItem->GetSpellCharges(s);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue