From 7559fc593a94a0bb5bae380fdb94f11667e5ac89 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 17 Jan 2017 16:43:53 -0500 Subject: [PATCH] Use default background on empty song select screen --- osu.Game/Screens/Backgrounds/BackgroundModeBeatmap.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game/Screens/Backgrounds/BackgroundModeBeatmap.cs b/osu.Game/Screens/Backgrounds/BackgroundModeBeatmap.cs index 1c25fcfb0e..b5a2332f7f 100644 --- a/osu.Game/Screens/Backgrounds/BackgroundModeBeatmap.cs +++ b/osu.Game/Screens/Backgrounds/BackgroundModeBeatmap.cs @@ -22,7 +22,6 @@ public WorkingBeatmap Beatmap { return beatmap; } - set { if (beatmap == value) @@ -56,6 +55,8 @@ public WorkingBeatmap Beatmap public BackgroundModeBeatmap(WorkingBeatmap beatmap) { Beatmap = beatmap; + if (beatmap == null) + Add(background = new Background(@"Backgrounds/bg1")); } public void BlurTo(Vector2 sigma, double duration) @@ -84,7 +85,6 @@ private void load() { Sprite.Texture = beatmap.Background; } - } } }