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

Fix nullref in the leaderboard's test case

This commit is contained in:
MrTheMake 2017-08-13 18:00:53 +02:00
parent 997d0c9053
commit e1e4eb78e3

View File

@ -55,7 +55,7 @@ namespace osu.Game.Screens.Select.Leaderboards
i = 0;
foreach (var s in scores)
{
s.Ruleset = beatmap.Ruleset;
s.Ruleset = beatmap?.Ruleset;
var ls = new LeaderboardScore(s, 1 + i)
{