From 4da09713a9b6edbbd7768589b35f021136c464ee Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 27 Feb 2017 18:08:05 +0900 Subject: [PATCH] Fix test case regression. --- osu.Game/Screens/OsuGameScreen.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/osu.Game/Screens/OsuGameScreen.cs b/osu.Game/Screens/OsuGameScreen.cs index 519d1f8aa9..871d3a6780 100644 --- a/osu.Game/Screens/OsuGameScreen.cs +++ b/osu.Game/Screens/OsuGameScreen.cs @@ -47,7 +47,14 @@ namespace osu.Game.Screens private void load(OsuGameBase game) { if (game != null) + { + //if we were given a beatmap at ctor time, we want to pass this on to the game-wide beatmap. + var localMap = beatmap.Value; beatmap.BindTo(game.Beatmap); + if (localMap != null) + beatmap.Value = localMap; + } + beatmap.ValueChanged += beatmap_ValueChanged; }