1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-22 18:12:56 +08:00

Fix ruleset not always getting populated in a WorkingBeatmap

This commit is contained in:
Dean Herbert 2017-05-12 20:05:44 +09:00
parent a27f92a4fb
commit a9b3f74218
2 changed files with 2 additions and 2 deletions

View File

@ -267,7 +267,7 @@ namespace osu.Game.Database
public WorkingBeatmap GetWorkingBeatmap(BeatmapInfo beatmapInfo, WorkingBeatmap previous = null, bool withStoryboard = false) public WorkingBeatmap GetWorkingBeatmap(BeatmapInfo beatmapInfo, WorkingBeatmap previous = null, bool withStoryboard = false)
{ {
if (beatmapInfo.BeatmapSet == null) if (beatmapInfo.BeatmapSet == null || beatmapInfo.Ruleset == null)
beatmapInfo = GetChildren(beatmapInfo, true); beatmapInfo = GetChildren(beatmapInfo, true);
if (beatmapInfo.BeatmapSet == null) if (beatmapInfo.BeatmapSet == null)

View File

@ -124,7 +124,7 @@ namespace osu.Game.Screens.Select
Content = getBPMRange(beatmap.Beatmap), Content = getBPMRange(beatmap.Beatmap),
})); }));
//get statistics fromt he current ruleset. //get statistics from the current ruleset.
labels.AddRange(beatmapInfo.Ruleset.CreateInstance().GetBeatmapStatistics(beatmap).Select(s => new InfoLabel(s))); labels.AddRange(beatmapInfo.Ruleset.CreateInstance().GetBeatmapStatistics(beatmap).Select(s => new InfoLabel(s)));
} }