mirror of
https://github.com/ppy/osu
synced 2025-03-02 09:30:57 +00:00
Ensure Score
created by GameplayState
has a valid ruleset
This commit is contained in:
parent
82259ee072
commit
5dd0bb1218
@ -50,7 +50,13 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
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
Block a user