[DatItem] Only compare like DatItems for SHA-1 mismatch

This commit is contained in:
Matt Nadareski
2017-01-23 11:03:15 -08:00
parent e0c2693822
commit 5574cf21e4

View File

@@ -172,7 +172,7 @@ namespace SabreTools.Helper.Dats
bool dupefound = this.Equals(lastItem); bool dupefound = this.Equals(lastItem);
// More wonderful SHA-1 logging that has to be done // More wonderful SHA-1 logging that has to be done
if (_itemType == ItemType.Rom) if (_itemType == ItemType.Rom && lastItem.Type == ItemType.Rom)
{ {
if (((Rom)this).SHA1 == ((Rom)lastItem).SHA1 && ((Rom)this).Size != ((Rom)lastItem).Size) if (((Rom)this).SHA1 == ((Rom)lastItem).SHA1 && ((Rom)this).Size != ((Rom)lastItem).Size)
{ {