[DatFile] Right, no CRC in disk

This commit is contained in:
Matt Nadareski
2017-11-08 15:32:55 -08:00
parent e6811cd710
commit 158f06fecc

View File

@@ -5051,8 +5051,7 @@ namespace SabreTools.Library.DatFiles
md5.Add(key, item);
}
// If the file has no MD5 but a CRC
else if ((item.Type == ItemType.Rom && !String.IsNullOrWhiteSpace(((Rom)item).CRC))
|| (item.Type == ItemType.Disk && !String.IsNullOrWhiteSpace(((Disk)item).CRC)))
else if ((item.Type == ItemType.Rom && !String.IsNullOrWhiteSpace(((Rom)item).CRC)))
{
crc.Add(key, item);
}