mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 15:12:57 +08:00
Fix incorrect access to ILive
in BeatmapSkinResources
tests
This commit is contained in:
parent
e5af673b01
commit
7e7784b78a
@ -26,8 +26,12 @@ namespace osu.Game.Tests.Skins
|
|||||||
private void load()
|
private void load()
|
||||||
{
|
{
|
||||||
var imported = beatmaps.Import(new ZipArchiveReader(TestResources.OpenResource("Archives/ogg-beatmap.osz"))).GetResultSafely();
|
var imported = beatmaps.Import(new ZipArchiveReader(TestResources.OpenResource("Archives/ogg-beatmap.osz"))).GetResultSafely();
|
||||||
beatmap = beatmaps.GetWorkingBeatmap(imported?.Value.Beatmaps[0]);
|
|
||||||
|
imported?.PerformRead(s =>
|
||||||
|
{
|
||||||
|
beatmap = beatmaps.GetWorkingBeatmap(s.Beatmaps[0]);
|
||||||
beatmap.LoadTrack();
|
beatmap.LoadTrack();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
Loading…
Reference in New Issue
Block a user