diff options
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"); |