diff --git a/SabreTools.Helper/Objects/DatObjects/Archive.cs b/SabreTools.Helper/Objects/DatObjects/Archive.cs index 1f0eaea2..ca53d114 100644 --- a/SabreTools.Helper/Objects/DatObjects/Archive.cs +++ b/SabreTools.Helper/Objects/DatObjects/Archive.cs @@ -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 diff --git a/SabreTools.Helper/Objects/DatObjects/BiosSet.cs b/SabreTools.Helper/Objects/DatObjects/BiosSet.cs index ec412bcf..6600be81 100644 --- a/SabreTools.Helper/Objects/DatObjects/BiosSet.cs +++ b/SabreTools.Helper/Objects/DatObjects/BiosSet.cs @@ -103,13 +103,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 a biosset, return false + if (_itemType != other.Type) { return false; } - // Otherwise, treat it as a rom + // Otherwise, treat it as a biosset BiosSet newOther = (BiosSet)other; // If the archive information matches diff --git a/SabreTools.Helper/Objects/DatObjects/Disk.cs b/SabreTools.Helper/Objects/DatObjects/Disk.cs index 9a2db1f6..5210ace4 100644 --- a/SabreTools.Helper/Objects/DatObjects/Disk.cs +++ b/SabreTools.Helper/Objects/DatObjects/Disk.cs @@ -124,7 +124,7 @@ namespace SabreTools.Helper bool dupefound = false; // If we don't have a rom, return false - if (_itemType == other.Type) + if (_itemType != other.Type) { return dupefound; } diff --git a/SabreTools.Helper/Objects/DatObjects/Release.cs b/SabreTools.Helper/Objects/DatObjects/Release.cs index a82b6433..02300921 100644 --- a/SabreTools.Helper/Objects/DatObjects/Release.cs +++ b/SabreTools.Helper/Objects/DatObjects/Release.cs @@ -127,13 +127,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 a release return false + if (_itemType != other.Type) { return false; } - // Otherwise, treat it as a rom + // Otherwise, treat it as a reease Release newOther = (Release)other; // If the archive information matches diff --git a/SabreTools.Helper/Objects/DatObjects/Rom.cs b/SabreTools.Helper/Objects/DatObjects/Rom.cs index 5bb18a8b..04d92a91 100644 --- a/SabreTools.Helper/Objects/DatObjects/Rom.cs +++ b/SabreTools.Helper/Objects/DatObjects/Rom.cs @@ -145,7 +145,7 @@ namespace SabreTools.Helper bool dupefound = false; // If we don't have a rom, return false - if (_itemType == other.Type) + if (_itemType != other.Type) { return dupefound; } diff --git a/SabreTools.Helper/Objects/DatObjects/Sample.cs b/SabreTools.Helper/Objects/DatObjects/Sample.cs index 01331f1c..9791c0cb 100644 --- a/SabreTools.Helper/Objects/DatObjects/Sample.cs +++ b/SabreTools.Helper/Objects/DatObjects/Sample.cs @@ -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 a sample, return false + if (_itemType != other.Type) { return false; } - // Otherwise, treat it as a rom + // Otherwise, treat it as a sample Sample newOther = (Sample)other; // If the archive information matches