Fix incorrect type check

This commit is contained in:
Dean Herbert 2021-11-12 18:32:39 +09:00
parent 7349e5521a
commit 1c49c4a602

View File

@ -55,7 +55,7 @@ namespace osu.Game.Models
public bool Equals(IBeatmapSetInfo? other) public bool Equals(IBeatmapSetInfo? other)
{ {
if (other is RealmBeatmap b) if (other is RealmBeatmapSet b)
return b.ID == ID; return b.ID == ID;
if (OnlineID > 0 && other?.OnlineID > 0) if (OnlineID > 0 && other?.OnlineID > 0)