mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 07:23:14 +08:00
Fix potential null ref when no beatmap is selected
This commit is contained in:
parent
b06477a1f5
commit
83402a70db
@ -111,7 +111,7 @@ namespace osu.Game.Screens.Select.Leaderboards
|
||||
|
||||
if (score.NewValue.TryGetTarget(out var scoreInfo))
|
||||
{
|
||||
if (Beatmap.ID != scoreInfo.BeatmapInfoID)
|
||||
if (Beatmap?.ID != scoreInfo.BeatmapInfoID)
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user