From 816306872d1fef87f593a2d8e63468c34ac53799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Domeradzki?= Date: Tue, 14 May 2024 13:14:14 +0200 Subject: [PATCH] Misc --- ArchiSteamFarm/Steam/Exchange/Trading.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ArchiSteamFarm/Steam/Exchange/Trading.cs b/ArchiSteamFarm/Steam/Exchange/Trading.cs index 022524ac8..d75c3ee53 100644 --- a/ArchiSteamFarm/Steam/Exchange/Trading.cs +++ b/ArchiSteamFarm/Steam/Exchange/Trading.cs @@ -181,9 +181,7 @@ public sealed class Trading : IDisposable { } // Otherwise, fill the missing holes in our data if needed, since we actually had zeros there - byte missingAmounts = (byte) (afterAmounts.Count - beforeAmounts.Count); - - for (byte i = 0; i < missingAmounts; i++) { + while (afterAmounts.Count > beforeAmounts.Count) { beforeAmounts.Insert(0, 0); }