mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:18:22 +08:00
Fix OsuTestScene.CreateAPIBeatmapSet()
not backlinking set beatmaps to the set
This commit is contained in:
parent
5fcd736332
commit
47764b3012
@ -265,7 +265,7 @@ namespace osu.Game.Tests.Visual
|
||||
{
|
||||
Debug.Assert(original.BeatmapSet != null);
|
||||
|
||||
return new APIBeatmapSet
|
||||
var result = new APIBeatmapSet
|
||||
{
|
||||
OnlineID = original.BeatmapSet.OnlineID,
|
||||
Status = BeatmapOnlineStatus.Ranked,
|
||||
@ -301,6 +301,11 @@ namespace osu.Game.Tests.Visual
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
foreach (var beatmap in result.Beatmaps)
|
||||
beatmap.BeatmapSet = result;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
protected WorkingBeatmap CreateWorkingBeatmap(RulesetInfo ruleset) =>
|
||||
|
Loading…
Reference in New Issue
Block a user