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:
parent
f2f60f6d03
commit
93b6cc00df
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user