Better equality code

This commit is contained in:
Matt Nadareski
2020-08-17 14:57:54 -07:00
parent af7633fea2
commit fafac31ea8
5 changed files with 175 additions and 102 deletions

View File

@@ -583,13 +583,10 @@ namespace SabreTools.Library.DatFiles
{
string key = oldkeys[k];
// Get the unsorted current list
List<DatItem> items = this[key];
// Now add each of the roms to their respective keys
for (int i = 0; i < items.Count; i++)
for (int i = 0; i < this[key].Count; i++)
{
DatItem item = items[i];
DatItem item = this[key][i];
if (item == null)
continue;