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

Fix results screen crashing for beatmaps with no online ID

This commit is contained in:
Shane Woolcock 2020-06-03 10:43:16 +09:30
parent a3e31adbf9
commit f4f84ede6a

View File

@ -140,14 +140,17 @@ namespace osu.Game.Screens.Ranking
{
base.LoadComplete();
var req = FetchScores(scores => Schedule(() =>
if (Score.Beatmap.OnlineBeatmapID != null)
{
foreach (var s in scores)
panels.AddScore(s);
}));
var req = FetchScores(scores => Schedule(() =>
{
foreach (var s in scores)
panels.AddScore(s);
}));
if (req != null)
api.Queue(req);
if (req != null)
api.Queue(req);
}
}
/// <summary>