1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:17:23 +08:00

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