Move DummyWorkingBeatmap to a more global level (OsuScreen)

This commit is contained in:
Dean Herbert
2017-07-18 17:44:45 +09:00
parent 6016310b09
commit 21984ba764
3 changed files with 3 additions and 5 deletions

View File

@ -49,7 +49,7 @@ namespace osu.Game.Screens
}
set
{
beatmap.Value = value;
beatmap.Value = value ?? new DummyWorkingBeatmap();
}
}

View File

@ -71,9 +71,6 @@ namespace osu.Game.Screens.Select
public void UpdateBeatmap(WorkingBeatmap beatmap)
{
if (beatmap == null)
beatmap = new DummyWorkingBeatmap();
var lastContainer = beatmapInfoContainer;
float newDepth = lastContainer?.Depth + 1 ?? 0;