diff options
author | megamage <none@none> | 2009-01-03 11:06:51 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-03 11:06:51 -0600 |
commit | 9438625a19c070ec20d392fa57f1de6a61b7b985 (patch) | |
tree | e4d7fc1ea493a8fb86bd4729b5c6940a2c771d27 /src/game/Item.cpp | |
parent | a1a52b710c6563105d1c24112b1fa2699f3fbdfe (diff) |
[7015] Implement support -1 in item_template.stackable and item_template.maxcount fields. By VladimirMangos.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Item.cpp')
-rw-r--r-- | src/game/Item.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Item.cpp b/src/game/Item.cpp index 8b4b124669e..ccd5a4d558c 100644 --- a/src/game/Item.cpp +++ b/src/game/Item.cpp @@ -890,8 +890,8 @@ Item* Item::CreateItem( uint32 item, uint32 count, Player const* player ) ItemPrototype const *pProto = objmgr.GetItemPrototype( item ); if( pProto ) { - if ( count > pProto->Stackable ) - count = pProto->Stackable; + if ( count > pProto->GetMaxStackSize()) + count = pProto->GetMaxStackSize(); assert(count !=0 && "pProto->Stackable==0 but checked at loading already"); |