From d59d0a8415f787dc78d405f8bad609d8e934be17 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Thu, 21 Apr 2016 02:37:40 +0200 Subject: [PATCH] Misc --- ArchiSteamFarm/Trading.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ArchiSteamFarm/Trading.cs b/ArchiSteamFarm/Trading.cs index 44361ca94..90a1cbbc8 100644 --- a/ArchiSteamFarm/Trading.cs +++ b/ArchiSteamFarm/Trading.cs @@ -174,6 +174,11 @@ namespace ArchiSteamFarm { // Now remove from our inventory all items we're NOT interested in inventory.RemoveWhere(item => !appIDs.Contains(item.RealAppID)); + // If for some reason Valve is talking crap and we can't find mentioned items, assume OK + if (inventory.Count == 0) { + return true; + } + // Now let's create a map which maps items to their amount in our EQ Dictionary, uint> amountMap = new Dictionary, uint>(); foreach (Steam.Item item in inventory) {