diff --git a/SabreTools.Library/DatFiles/DatFile.cs b/SabreTools.Library/DatFiles/DatFile.cs index c48d2b63..c163c2a6 100644 --- a/SabreTools.Library/DatFiles/DatFile.cs +++ b/SabreTools.Library/DatFiles/DatFile.cs @@ -1767,6 +1767,13 @@ namespace SabreTools.Library.DatFiles List newDatItems = new List(); foreach (DatItem datItem in datItems) { + // If we have something other than a Rom or Disk, then this doesn't do anything + if (datItem.Type != ItemType.Disk && datItem.Type != ItemType.Rom) + { + newDatItems.Add((DatItem)datItem.Clone()); + continue; + } + List dupes = datItem.GetDuplicates(this, sorted: true); DatItem newDatItem = (DatItem)datItem.Clone();