1
0
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:
Dean Herbert
2025-05-26 03:21:43 +09:00
Unverified
parent 0c76c5297d
commit f3782acddd
+6
View File
@@ -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);