Fix local beatmap leaderboard displaying scores from all game m… (#5226)

Fix local beatmap leaderboard displaying scores from all game modes
This commit is contained in:
Dean Herbert 2019-07-03 21:52:44 +09:00 committed by GitHub
commit 127b0b33c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -55,7 +55,9 @@ protected override APIRequest FetchScores(Action<IEnumerable<ScoreInfo>> scoresC
{
if (Scope == BeatmapLeaderboardScope.Local)
{
Scores = scoreManager.QueryScores(s => !s.DeletePending && s.Beatmap.ID == Beatmap.ID).OrderByDescending(s => s.TotalScore).ToArray();
Scores = scoreManager
.QueryScores(s => !s.DeletePending && s.Beatmap.ID == Beatmap.ID && s.Ruleset.ID == ruleset.Value.ID)
.OrderByDescending(s => s.TotalScore).ToArray();
PlaceholderState = Scores.Any() ? PlaceholderState.Successful : PlaceholderState.NoScores;
return null;
}