Make stats use the reduced parsing model

This commit is contained in:
Matt Nadareski
2020-12-23 14:06:48 -08:00
parent 616d4fec5e
commit 8a60d824e3
3 changed files with 13 additions and 15 deletions

View File

@@ -233,9 +233,7 @@ namespace SabreTools.DatFiles
// If only adding statistics, we add an empty key for games and then just item stats
if (statsOnly)
{
if (Items.ContainsKey(key))
Items.Add(key, new List<DatItem>());
Items.EnsureKey(key);
Items.AddItemStatistics(item);
}
else