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