1
0
Fork 0
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:
a 2024-12-06 23:08:32 +02:00
parent f6ec01fd49
commit b63140ca63

View file

@ -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 (...)
{