This commit is contained in:
JustArchi
2018-04-21 22:13:12 +02:00
parent 0af1a7af56
commit 1b1673a3f9

View File

@@ -96,7 +96,7 @@ namespace ArchiSteamFarm {
for (uint i = 0; i < item.Amount; i++) {
amountsToGive.Add(itemAmountsToGive.TryGetValue(item.ClassID, out uint amount) ? amount : 0);
itemAmountsToGive[item.ClassID] = amount - 1; // We're giving one, so we have one less
itemAmountsToGive[item.ClassID] = --amount; // We're giving one, so we have one less
}
}
@@ -116,7 +116,7 @@ namespace ArchiSteamFarm {
for (uint i = 0; i < item.Amount; i++) {
amountsToReceive.Add(itemAmountsToReceive.TryGetValue(item.ClassID, out uint amount) ? amount : 0);
itemAmountsToReceive[item.ClassID] = amount + 1; // We're getting one, so we have one more
itemAmountsToReceive[item.ClassID] = ++amount; // We're getting one, so we have one more
}
}