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:
parent
1564e8052e
commit
0bd352b50b
1 changed files with 3 additions and 3 deletions
|
@ -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() );
|
||||
|
|
Loading…
Add table
Reference in a new issue