mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 20:53:00 +08:00
Fix incorrect dependency creation
This commit is contained in:
parent
a21cf87b5f
commit
9cf2c9ddae
@ -27,7 +27,7 @@ namespace osu.Game.Tests.Visual.OnlinePlay
|
|||||||
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)
|
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)
|
||||||
{
|
{
|
||||||
var dependencies = new DependencyContainer(
|
var dependencies = new DependencyContainer(
|
||||||
new CachedModelDependencyContainer<Room>(parent) { Model = { Value = Room } });
|
new CachedModelDependencyContainer<Room>(base.CreateChildDependencies(parent)) { Model = { Value = Room } });
|
||||||
|
|
||||||
dependencies.Cache(new Bindable<Room>(Room));
|
dependencies.Cache(new Bindable<Room>(Room));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user