mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatItem] Fix child classes equatiblity
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user