1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Fix null condition inhibiting deselection events

This commit is contained in:
Dean Herbert 2021-01-03 22:43:02 +09:00
parent a6d4992997
commit efb71713ef

View File

@ -428,7 +428,10 @@ namespace osu.Game.Screens.Select
private void updateSelectedBeatmap(BeatmapInfo beatmap)
{
if (beatmap == null || beatmap.Equals(beatmapNoDebounce))
if (beatmap == null && beatmapNoDebounce == null)
return;
if (beatmap?.Equals(beatmapNoDebounce) == true)
return;
beatmapNoDebounce = beatmap;