mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Fix incorrect beatmap set info equality check on non-online set info
This commit is contained in:
@ -63,6 +63,12 @@ namespace osu.Game.Beatmaps
|
||||
|
||||
public bool Protected { get; set; }
|
||||
|
||||
public bool Equals(BeatmapSetInfo other) => OnlineBeatmapSetID == other?.OnlineBeatmapSetID;
|
||||
public bool Equals(BeatmapSetInfo other)
|
||||
{
|
||||
if (!OnlineBeatmapSetID.HasValue || !(other?.OnlineBeatmapSetID.HasValue ?? false))
|
||||
return ReferenceEquals(this, other);
|
||||
|
||||
return OnlineBeatmapSetID == other.OnlineBeatmapSetID;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user