mirror of
https://github.com/ppy/osu
synced 2025-01-25 07:13:22 +00:00
Fix results screen crashing for beatmaps with no online ID
This commit is contained in:
parent
a3e31adbf9
commit
f4f84ede6a
@ -140,6 +140,8 @@ namespace osu.Game.Screens.Ranking
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
if (Score.Beatmap.OnlineBeatmapID != null)
|
||||
{
|
||||
var req = FetchScores(scores => Schedule(() =>
|
||||
{
|
||||
foreach (var s in scores)
|
||||
@ -149,6 +151,7 @@ namespace osu.Game.Screens.Ranking
|
||||
if (req != null)
|
||||
api.Queue(req);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs a fetch/refresh of scores to be displayed.
|
||||
|
Loading…
Reference in New Issue
Block a user