diff --git a/SabreTools.DatFiles/DatFile.cs b/SabreTools.DatFiles/DatFile.cs index 7a2ffdc1..ee50e921 100644 --- a/SabreTools.DatFiles/DatFile.cs +++ b/SabreTools.DatFiles/DatFile.cs @@ -230,11 +230,18 @@ namespace SabreTools.DatFiles // Get the key and add the file key = item.GetKey(ItemKey.Machine); - // If only adding statistics + // 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()); + Items.AddItemStatistics(item); + } else + { Items.Add(key, item); + } return key; }