mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 15:12:57 +08:00
Fix oversight on null
This commit is contained in:
parent
35f97dfc75
commit
deaf24f141
@ -37,6 +37,7 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
if (LastSelected == null)
|
||||
{
|
||||
var recommendedBeatmapInfo = getRecommendedBeatmap(Children.OfType<CarouselBeatmap>().Where(b => !b.Filtered.Value).Select(b => b.Beatmap));
|
||||
if (recommendedBeatmapInfo != null)
|
||||
return Children.OfType<CarouselBeatmap>().First(b => b.Beatmap == recommendedBeatmapInfo);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user