mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 18:32:55 +08:00
Do not attempt to load gameplay scene if current beatmap is dummy
This commit is contained in:
parent
9d39b70e38
commit
063694f544
@ -281,7 +281,6 @@ namespace osu.Game.Tests.Visual.Navigation
|
||||
AddStep("set dummy beatmap", () => Game.Beatmap.SetDefault());
|
||||
|
||||
openSkinEditor();
|
||||
switchToGameplayScene();
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
@ -140,6 +140,12 @@ namespace osu.Game.Overlays.SkinEditor
|
||||
{
|
||||
performer?.PerformFromScreen(screen =>
|
||||
{
|
||||
if (beatmap.Value is DummyWorkingBeatmap)
|
||||
{
|
||||
// presume we don't have anything good to play and just bail.
|
||||
return;
|
||||
}
|
||||
|
||||
// If we're playing the intro, switch away to another beatmap.
|
||||
if (beatmap.Value.BeatmapSetInfo.Protected)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user