Fix TestCasePlayer regression.

This commit is contained in:
Dean Herbert 2017-02-22 23:27:29 +09:00
parent aef0eb49a1
commit d19a7813f3
2 changed files with 13 additions and 2 deletions

View File

@ -38,7 +38,7 @@ namespace osu.Desktop.VisualTests.Tests
{
base.Reset();
if (beatmap?.Track == null)
//if (beatmap?.Track == null)
{
var objects = new List<HitObject>();
@ -60,7 +60,16 @@ namespace osu.Desktop.VisualTests.Tests
Beatmap b = new Beatmap
{
HitObjects = objects
HitObjects = objects,
BeatmapInfo = new BeatmapInfo
{
Metadata = new BeatmapMetadata
{
Artist = @"Unknown",
Title = @"Sample Beatmap",
Author = @"peppy",
}
}
};
decoder.Process(b);

View File

@ -113,6 +113,8 @@ namespace osu.Game.Beatmaps
public WorkingBeatmap(Beatmap beatmap)
{
this.beatmap = beatmap;
BeatmapInfo = beatmap.BeatmapInfo;
BeatmapSetInfo = beatmap.BeatmapInfo.BeatmapSet;
}
public WorkingBeatmap(BeatmapInfo beatmapInfo, BeatmapSetInfo beatmapSetInfo, BeatmapDatabase database, bool withStoryboard = false)