1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 06:47:45 +00:00

create larger stacks correctly, fix indent

This commit is contained in:
NotAdam 2018-06-30 11:53:45 +10:00
parent 1564e8052e
commit 0bd352b50b

View file

@ -134,7 +134,7 @@ Core::ItemPtr Core::Inventory::createItem( uint32_t catalogId, uint16_t quantity
auto pDb = g_fw.get< Db::DbWorkerPool< Db::CharaDbConnection > >();
auto itemInfo = pExdData->get< Core::Data::Item >( catalogId );
uint8_t itemAmount = quantity;
uint16_t itemAmount = quantity;
if( itemInfo->stackSize == 1 )
itemAmount = 1;
@ -146,7 +146,7 @@ Core::ItemPtr Core::Inventory::createItem( uint32_t catalogId, uint16_t quantity
// std::string itemName( itemInfo->name );
ItemPtr pItem( new Item( catalogId ) );
ItemPtr pItem = make_Item( catalogId );
pItem->setStackSize( itemAmount );
pItem->setUId( getNextUId() );