From 816e360c3604dd1e2bdca358dca5df10bbb813a6 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 31 Aug 2020 17:02:43 -0700 Subject: [PATCH] Loosen the matching criteria again --- SabreTools.Library/DatFiles/DatFile.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SabreTools.Library/DatFiles/DatFile.cs b/SabreTools.Library/DatFiles/DatFile.cs index 95a11778..b433a9c3 100644 --- a/SabreTools.Library/DatFiles/DatFile.cs +++ b/SabreTools.Library/DatFiles/DatFile.cs @@ -1415,7 +1415,7 @@ namespace SabreTools.Library.DatFiles DatItem datItem = (DatItem)item.Clone(); newdevs.AddRange((datItem.Machine.DeviceReferences ?? new List()).Select(d => d.Name).ToList()); datItem.CopyMachineInformation(copyFrom); - if (!Items[game].Contains(datItem)) + if (Items[game].Where(i => i.ItemType == datItem.ItemType && i.Name == datItem.Name).Count() == 0) { foundnew = true; Items.Add(game, datItem); @@ -1473,7 +1473,7 @@ namespace SabreTools.Library.DatFiles newSlotOptions.AddRange(machineSlotOptions); datItem.CopyMachineInformation(copyFrom); - if (!Items[game].Contains(datItem)) + if (Items[game].Where(i => i.ItemType == datItem.ItemType && i.Name == datItem.Name).Count() == 0) { foundnew = true; Items.Add(game, datItem);