1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 04:13:00 +08:00

Fix online ScoreInfo having the wrong ruleset

This commit is contained in:
naoey 2019-07-03 14:25:59 +05:30
parent 7c5e4c60c1
commit 9805adc61d
No known key found for this signature in database
GPG Key ID: 670DA9BE3DF7EE60
2 changed files with 3 additions and 11 deletions

View File

@ -34,7 +34,10 @@ namespace osu.Game.Online.API.Requests
private void onSuccess(APILegacyScores r) private void onSuccess(APILegacyScores r)
{ {
foreach (APILegacyScoreInfo score in r.Scores) foreach (APILegacyScoreInfo score in r.Scores)
{
score.Beatmap = beatmap; score.Beatmap = beatmap;
score.Ruleset = ruleset;
}
} }
protected override WebRequest CreateWebRequest() protected override WebRequest CreateWebRequest()

View File

@ -116,17 +116,6 @@ namespace osu.Game.Online.API.Requests.Responses
[JsonProperty(@"mods")] [JsonProperty(@"mods")]
private string[] modStrings { get; set; } private string[] modStrings { get; set; }
public override BeatmapInfo Beatmap
{
get => base.Beatmap;
set
{
base.Beatmap = value;
if (Beatmap.Ruleset != null)
Ruleset = value.Ruleset;
}
}
public override RulesetInfo Ruleset public override RulesetInfo Ruleset
{ {
get => base.Ruleset; get => base.Ruleset;