diff --git a/dll/steam_inventory.cpp b/dll/steam_inventory.cpp index 9e0b19f3..fcdbbe49 100644 --- a/dll/steam_inventory.cpp +++ b/dll/steam_inventory.cpp @@ -164,7 +164,7 @@ bool Steam_Inventory::GetResultItems( SteamInventoryResult_t resultHandle, pOutItemsArray->m_itemId = pOutItemsArray->m_iDefinition; try { - pOutItemsArray->m_unQuantity = i.value().get(); + pOutItemsArray->m_unQuantity = i->value("quantity", static_cast(0)); } catch (...) { @@ -183,7 +183,7 @@ bool Steam_Inventory::GetResultItems( SteamInventoryResult_t resultHandle, try { - pOutItemsArray->m_unQuantity = it->get(); + pOutItemsArray->m_unQuantity = it->value("quantity", static_cast(0)); } catch (...) {