1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 09:32:55 +08:00

Fix potential nullref when song select filters to no results

This commit is contained in:
Dean Herbert 2022-01-07 16:49:13 +09:00
parent 2d2faa72a9
commit 60d2de8a3b

View File

@ -482,7 +482,7 @@ namespace osu.Game.Screens.Select
else
selectionChangedDebounce = Scheduler.AddDelayed(run, 200);
if (!beatmap.Equals(beatmapInfoPrevious))
if (beatmap?.Equals(beatmapInfoPrevious) != true)
{
if (beatmap != null && beatmapInfoPrevious != null && Time.Current - audioFeedbackLastPlaybackTime >= 50)
{