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