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,6 +37,7 @@ 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));
|
||||||
|
if (recommendedBeatmapInfo != null)
|
||||||
return Children.OfType<CarouselBeatmap>().First(b => b.Beatmap == recommendedBeatmapInfo);
|
return Children.OfType<CarouselBeatmap>().First(b => b.Beatmap == recommendedBeatmapInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user