1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-05 10:53:10 +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 else
selectionChangedDebounce = Scheduler.AddDelayed(run, 200); selectionChangedDebounce = Scheduler.AddDelayed(run, 200);
if (!beatmap.Equals(beatmapInfoPrevious)) if (beatmap?.Equals(beatmapInfoPrevious) != true)
{ {
if (beatmap != null && beatmapInfoPrevious != null && Time.Current - audioFeedbackLastPlaybackTime >= 50) if (beatmap != null && beatmapInfoPrevious != null && Time.Current - audioFeedbackLastPlaybackTime >= 50)
{ {