[DatFIle] Fix hash split

This commit is contained in:
Matt Nadareski
2017-11-08 15:32:12 -08:00
parent 62f3264b7b
commit e6811cd710

View File

@@ -5051,8 +5051,8 @@ 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).SHA1))
|| (item.Type == ItemType.Disk && !String.IsNullOrWhiteSpace(((Disk)item).SHA1)))
else if ((item.Type == ItemType.Rom && !String.IsNullOrWhiteSpace(((Rom)item).CRC))
|| (item.Type == ItemType.Disk && !String.IsNullOrWhiteSpace(((Disk)item).CRC)))
{
crc.Add(key, item);
}