1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 02:22:56 +08:00

Don't rely on BeatmapSetInfo being present

This commit is contained in:
Dean Herbert 2017-07-20 09:23:11 +09:00
parent d69470f2ae
commit 8d727b898f

View File

@ -189,7 +189,7 @@ namespace osu.Game.Screens.Select
private void carouselBeatmapsLoaded()
{
if (Beatmap.Value != null && !Beatmap.Value.BeatmapSetInfo.DeletePending)
if (Beatmap.Value != null && Beatmap.Value.BeatmapSetInfo?.DeletePending != false)
carousel.SelectBeatmap(Beatmap.Value.BeatmapInfo, false);
else
carousel.SelectNext();