1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-21 19:52:55 +08:00

Fix ruleset nullref

This commit is contained in:
smoogipoo 2020-03-02 13:24:02 +09:00
parent 6d939e9d41
commit e801ad514b

View File

@ -12,11 +12,13 @@ namespace osu.Game.Tests.Visual
{
public abstract class ModPerfectTestScene : ModSandboxTestScene
{
private readonly Ruleset ruleset;
private readonly ModPerfect perfectMod;
protected ModPerfectTestScene(Ruleset ruleset, ModPerfect perfectMod)
: base(ruleset)
{
this.ruleset = ruleset;
this.perfectMod = perfectMod;
}
@ -24,7 +26,7 @@ namespace osu.Game.Tests.Visual
{
Beatmap = new Beatmap
{
BeatmapInfo = { Ruleset = Ruleset.Value },
BeatmapInfo = { Ruleset = ruleset.RulesetInfo },
HitObjects = { testCaseData.HitObject }
},
Autoplay = !shouldMiss,