This commit is contained in:
JustArchi
2018-09-29 22:31:16 +02:00
parent e188a1d751
commit 602cde7632

View File

@@ -432,7 +432,7 @@ namespace ArchiSteamFarm.Json {
if (itemsToReceivePerGame.TryGetValue(item.RealAppID, out Dictionary<Asset.EType, uint> itemsPerType)) {
itemsPerType[item.Type] = itemsPerType.TryGetValue(item.Type, out uint amount) ? amount + item.Amount : item.Amount;
} else {
itemsPerType = new Dictionary<Asset.EType, uint> { { item.Type, item.Amount } };
itemsPerType = new Dictionary<Asset.EType, uint> { [item.Type] = item.Amount };
itemsToReceivePerGame[item.RealAppID] = itemsPerType;
}
}