1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 00:47:24 +08:00

Fix mod perfect test scenes failing due to null ruleset provided

Just a workaround for now, a better fix may be to put the test data creation in an action that is guaranteed to be invoked after the test scene has fully loaded (all dependencies would've been resolved by then).
This commit is contained in:
Salman Ahmed 2020-06-04 00:40:24 +03:00
parent 136e10086a
commit bbad70c3f0
No known key found for this signature in database
GPG Key ID: ED81FD33FD9B58BC

View File

@ -22,7 +22,7 @@ namespace osu.Game.Tests.Visual
Mod = mod,
Beatmap = new Beatmap
{
BeatmapInfo = { Ruleset = Ruleset.Value },
BeatmapInfo = { Ruleset = CreatePlayerRuleset().RulesetInfo },
HitObjects = { testData.HitObject }
},
Autoplay = !shouldMiss,