1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 02:42:54 +08:00

Merge pull request #4612 from smoogipoo/fix-osuscreen-dependencies

Fix OsuScreenDependencies using the incorrect parent
This commit is contained in:
Dean Herbert 2019-04-09 12:28:32 +08:00 committed by GitHub
commit ca251d8fa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,12 +65,12 @@ namespace osu.Game.Screens
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)
{
var deps = new OsuScreenDependencies(DisallowExternalBeatmapRulesetChanges, base.CreateChildDependencies(parent));
var screenDependencies = new OsuScreenDependencies(DisallowExternalBeatmapRulesetChanges, parent);
Beatmap = deps.Beatmap;
Ruleset = deps.Ruleset;
Beatmap = screenDependencies.Beatmap;
Ruleset = screenDependencies.Ruleset;
return deps;
return base.CreateChildDependencies(screenDependencies);
}
protected BackgroundScreen Background => backgroundStack?.CurrentScreen as BackgroundScreen;