mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-03-28 14:56:24 +01:00
properly extract inventory item quantity in Steam_Inventory::GetResultItems()
This commit is contained in:
parent
f6ec01fd49
commit
b63140ca63
1 changed files with 2 additions and 2 deletions
|
@ -164,7 +164,7 @@ bool Steam_Inventory::GetResultItems( SteamInventoryResult_t resultHandle,
|
|||
pOutItemsArray->m_itemId = pOutItemsArray->m_iDefinition;
|
||||
try
|
||||
{
|
||||
pOutItemsArray->m_unQuantity = i.value().get<int>();
|
||||
pOutItemsArray->m_unQuantity = i->value("quantity", static_cast<uint16>(0));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
|
@ -183,7 +183,7 @@ bool Steam_Inventory::GetResultItems( SteamInventoryResult_t resultHandle,
|
|||
|
||||
try
|
||||
{
|
||||
pOutItemsArray->m_unQuantity = it->get<int>();
|
||||
pOutItemsArray->m_unQuantity = it->value("quantity", static_cast<uint16>(0));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue