1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 21:43:04 +08:00

Fix OsuTestCase beatmap not having a correct default beatmap

This commit is contained in:
smoogipoo 2018-12-05 20:19:21 +09:00
parent e7d7e00516
commit 1a3c06f2d9

View File

@ -29,6 +29,9 @@ namespace osu.Game.Tests.Visual
{
Dependencies = new DependencyContainer(base.CreateChildDependencies(parent));
// This is the earliest we can get OsuGameBase, which is used by the dummy working beatmap to find textures
beatmap.Default = new DummyWorkingBeatmap(Dependencies.Get<OsuGameBase>());
Dependencies.CacheAs<BindableBeatmap>(beatmap);
Dependencies.CacheAs<IBindableBeatmap>(beatmap);