diff --git a/osu.Game/Beatmaps/BeatmapManager.cs b/osu.Game/Beatmaps/BeatmapManager.cs index d50862a369..7860dba075 100644 --- a/osu.Game/Beatmaps/BeatmapManager.cs +++ b/osu.Game/Beatmaps/BeatmapManager.cs @@ -334,7 +334,11 @@ namespace osu.Game.Beatmaps /// A matching local beatmap info if existing and in a valid state. public BeatmapInfo? QueryOnlineBeatmapId(int id) => Realm.Run(r => r.All() - .ForOnlineId(id).SingleOrDefault()?.Detach()); + .ForOnlineId(id) + // See https://github.com/ppy/osu/issues/36234 for why this isn't a SingleOrDefault(). + .FirstOrDefault() + ?.Detach() + ); /// /// A default representation of a WorkingBeatmap to use when no beatmap is available.