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:
parent
a3e31adbf9
commit
f4f84ede6a
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user