Fix test case regression.

This commit is contained in:
Dean Herbert 2017-02-27 18:08:05 +09:00
parent 68dd3c02aa
commit 4da09713a9
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -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;
}