mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Fix potential null ref when no beatmap is selected
This commit is contained in:
@ -111,7 +111,7 @@ namespace osu.Game.Screens.Select.Leaderboards
|
|||||||
|
|
||||||
if (score.NewValue.TryGetTarget(out var scoreInfo))
|
if (score.NewValue.TryGetTarget(out var scoreInfo))
|
||||||
{
|
{
|
||||||
if (Beatmap.ID != scoreInfo.BeatmapInfoID)
|
if (Beatmap?.ID != scoreInfo.BeatmapInfoID)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user