1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

Fix OsuScreenDependencies using the incorrect parent

This commit is contained in:
smoogipoo 2019-04-09 12:53:00 +09:00
parent f2f60f6d03
commit 93b6cc00df

View File

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