Fix initial beatmap selection potentially being incorrect

This commit is contained in:
Dean Herbert 2017-12-16 21:25:54 +09:00
parent 5aee8f80bb
commit 33f8c8419a
2 changed files with 3 additions and 8 deletions

View File

@ -160,13 +160,8 @@ namespace osu.Game.Screens.Select
public void SelectBeatmap(BeatmapInfo beatmap)
{
if (beatmap == null || beatmap.Hidden)
{
SelectNext();
if (beatmap?.Hidden != false)
return;
}
if (beatmap == SelectedBeatmap) return;
foreach (CarouselBeatmapSet group in beatmapSets)
{

View File

@ -197,7 +197,7 @@ namespace osu.Game.Screens.Select
Beatmap.ValueChanged += b =>
{
if (!IsCurrentScreen) return;
if (IsCurrentScreen)
carousel.SelectBeatmap(b?.BeatmapInfo);
};
}