mirror of https://github.com/ppy/osu
Ensure `Score` created by `GameplayState` has a valid ruleset
This commit is contained in:
parent
82259ee072
commit
5dd0bb1218
|
@ -50,7 +50,13 @@ public GameplayState(IBeatmap beatmap, Ruleset ruleset, IReadOnlyList<Mod>? mods
|
|||
{
|
||||
Beatmap = beatmap;
|
||||
Ruleset = ruleset;
|
||||
Score = score ?? new Score();
|
||||
Score = score ?? new Score
|
||||
{
|
||||
ScoreInfo =
|
||||
{
|
||||
Ruleset = ruleset.RulesetInfo
|
||||
}
|
||||
};
|
||||
Mods = mods ?? ArraySegment<Mod>.Empty;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue