fix crash if any amount of maps were restored from main menu

also fixes preview not playing if an entire set is restored
This commit is contained in:
Aergwyn
2017-12-04 11:47:27 +01:00
parent 58777a9674
commit 011223048b
2 changed files with 21 additions and 13 deletions

View File

@ -255,11 +255,11 @@ namespace osu.Game.Screens.Select
UpdateBeatmap(Beatmap.Value);
};
selectionChangedDebounce?.Cancel();
if (beatmap?.Equals(beatmapNoDebounce) == true)
return;
selectionChangedDebounce?.Cancel();
beatmapNoDebounce = beatmap;
if (beatmap == null)