1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 19:12:54 +08:00

Do not attempt to load gameplay scene if current beatmap is dummy

This commit is contained in:
Bartłomiej Dach 2023-12-04 14:20:03 +01:00
parent 9d39b70e38
commit 063694f544
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View File

@ -281,7 +281,6 @@ namespace osu.Game.Tests.Visual.Navigation
AddStep("set dummy beatmap", () => Game.Beatmap.SetDefault());
openSkinEditor();
switchToGameplayScene();
}
[Test]

View File

@ -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)
{