[DatItem] Fix child classes equatiblity

This commit is contained in:
Matt Nadareski
2016-09-19 22:28:17 -07:00
parent 9a7be539fb
commit de5e63a695
6 changed files with 14 additions and 14 deletions

View File

@@ -73,13 +73,13 @@
public override bool Equals(DatItem other)
{
// If we don't have a rom, return false
if (_itemType == other.Type)
// If we don't have an archive, return false
if (_itemType != other.Type)
{
return false;
}
// Otherwise, treat it as a rom
// Otherwise, treat it as an archive
Archive newOther = (Archive)other;
// If the archive information matches