mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 07:37:02 +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
|
|
@ -263,7 +263,7 @@ bool Item::Create( uint32 guidlow, uint32 itemid, Player const* owner)
|
|||
SetUInt32Value(ITEM_FIELD_MAXDURABILITY, itemProto->MaxDurability);
|
||||
SetUInt32Value(ITEM_FIELD_DURABILITY, itemProto->MaxDurability);
|
||||
|
||||
for(int i = 0; i < 5; ++i)
|
||||
for(int i = 0; i < MAX_ITEM_PROTO_SPELLS; ++i)
|
||||
SetSpellCharges(i,itemProto->Spells[i].SpellCharges);
|
||||
|
||||
SetUInt32Value(ITEM_FIELD_FLAGS, itemProto->Flags);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue