Fixed nullref
This commit is contained in:
parent
2415929c46
commit
9661b27794
@ -94,20 +94,14 @@ public static class BotParser
|
|||||||
bot.InsuredItems = null;
|
bot.InsuredItems = null;
|
||||||
|
|
||||||
// Add bot if not already added
|
// Add bot if not already added
|
||||||
if (parsedBotsDict.TryAdd(bot._id, bot))
|
if (!parsedBotsDict.TryAdd(bot._id, bot))
|
||||||
{
|
|
||||||
// Success
|
|
||||||
// Null out more data to save ram
|
|
||||||
bot.Inventory.items.RemoveAll(x => x.parentId == null);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
dupeCount++;
|
dupeCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
totalDupeCount += dupeCount;
|
totalDupeCount += dupeCount;
|
||||||
Console.WriteLine($"Parsed file: {filePath}");
|
//Console.WriteLine($"Parsed file: {filePath}");
|
||||||
return totalDupeCount;
|
return totalDupeCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user