Fix scores not being accepted due to missing ruleset ID

This commit is contained in:
Dean Herbert
2021-04-09 15:18:02 +09:00
parent a4b4033bf0
commit 51fee79ef1
2 changed files with 9 additions and 2 deletions

View File

@ -17,7 +17,10 @@ namespace osu.Game.Screens.Play
if (!(Beatmap.Value.BeatmapInfo.OnlineBeatmapID is int beatmapId))
return null;
return new CreateSoloScoreRequest(beatmapId, Game.VersionHash);
if (!(Ruleset.Value.ID is int rulesetId))
return null;
return new CreateSoloScoreRequest(beatmapId, rulesetId, Game.VersionHash);
}
protected override bool HandleTokenRetrievalFailure(Exception exception) => false;