Fix bad equality comparer implementations

This commit is contained in:
smoogipoo
2020-12-01 18:09:21 +09:00
parent c61f00525d
commit 6b4a6c12c8
3 changed files with 5 additions and 4 deletions

View File

@ -83,7 +83,7 @@ namespace osu.Game.Audio
=> other != null && Name == other.Name && Bank == other.Bank && Suffix == other.Suffix;
public override bool Equals(object? obj)
=> Equals((HitSampleInfo?)obj);
=> obj is HitSampleInfo other && Equals(other);
public override int GetHashCode() => HashCode.Combine(Name, Bank, Suffix);
}