1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 11:42:56 +08:00

Fix test edge cases

This commit is contained in:
Dean Herbert 2017-12-20 21:06:33 +09:00
parent c871a25dfa
commit 3292ef33fd
2 changed files with 2 additions and 2 deletions

View File

@ -267,7 +267,7 @@ namespace osu.Game.Tests.Visual
private void networkFailure()
{
leaderboard.Beatmap = new BeatmapInfo();
leaderboard.Beatmap = new BeatmapInfo { Ruleset = rulesets.GetRuleset(0) };
}
private class FailableLeaderboard : Leaderboard

View File

@ -215,7 +215,7 @@ namespace osu.Game.Screens.Select.Leaderboards
return;
}
getScoresRequest = new GetScoresRequest(Beatmap, osuGame?.Ruleset.Value, Scope);
getScoresRequest = new GetScoresRequest(Beatmap, osuGame?.Ruleset.Value ?? Beatmap.Ruleset, Scope);
getScoresRequest.Success += r =>
{
Scores = r.Scores;