1
0
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:
Bartłomiej Dach 2023-09-18 13:54:57 +02:00
parent 5fcd736332
commit 47764b3012
No known key found for this signature in database

View File

@ -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) =>