mirror of
https://github.com/ppy/osu.git
synced 2026-06-08 22:44:40 +08:00
Fix BeatmapSetInfo missing GetHashCode implentation
Causing dictionary lookups to fail when expecting equality implementation to work.
This commit is contained in:
@@ -90,6 +90,12 @@ namespace osu.Game.Beatmaps
|
||||
return ID == other.ID;
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
// ReSharper disable once NonReadonlyMemberInGetHashCode
|
||||
return ID.GetHashCode();
|
||||
}
|
||||
|
||||
public override string ToString() => Metadata.GetDisplayString();
|
||||
|
||||
public bool Equals(IBeatmapSetInfo? other) => other is BeatmapSetInfo b && Equals(b);
|
||||
|
||||
Reference in New Issue
Block a user