From c9c04a6200bf51618d221de8b72f816edfb603e6 Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Fri, 14 Dec 2018 13:43:52 +0900 Subject: [PATCH] Fix ToBeatmap not using the correct metadata Metadata is always come from the API via the beatmap set. --- osu.Game/Online/API/Requests/Responses/APIBeatmap.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/osu.Game/Online/API/Requests/Responses/APIBeatmap.cs b/osu.Game/Online/API/Requests/Responses/APIBeatmap.cs index b96e4bedf6..2b4c69d332 100644 --- a/osu.Game/Online/API/Requests/Responses/APIBeatmap.cs +++ b/osu.Game/Online/API/Requests/Responses/APIBeatmap.cs @@ -59,15 +59,17 @@ namespace osu.Game.Online.API.Requests.Responses public BeatmapInfo ToBeatmap(RulesetStore rulesets) { + var set = BeatmapSet.ToBeatmapSet(rulesets); + return new BeatmapInfo { - Metadata = this, + Metadata = set.Metadata, Ruleset = rulesets.GetRuleset(ruleset), StarDifficulty = starDifficulty, OnlineBeatmapID = OnlineBeatmapID, Version = version, Status = Status, - BeatmapSet = BeatmapSet.ToBeatmapSet(rulesets), + BeatmapSet = set, BaseDifficulty = new BeatmapDifficulty { DrainRate = drainRate,