mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 00:43:21 +08:00
Add precautionary null checks to update methods in SongSelect
This commit is contained in:
parent
e2de5bb8f9
commit
caa5109e3a
@ -428,7 +428,7 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
private void updateSelectedBeatmap(BeatmapInfo beatmap)
|
||||
{
|
||||
if (beatmap?.Equals(beatmapNoDebounce) == true)
|
||||
if (beatmap == null || beatmap.Equals(beatmapNoDebounce))
|
||||
return;
|
||||
|
||||
beatmapNoDebounce = beatmap;
|
||||
@ -438,7 +438,7 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
private void updateSelectedRuleset(RulesetInfo ruleset)
|
||||
{
|
||||
if (ruleset?.Equals(rulesetNoDebounce) == true)
|
||||
if (ruleset == null || ruleset.Equals(rulesetNoDebounce))
|
||||
return;
|
||||
|
||||
rulesetNoDebounce = ruleset;
|
||||
|
Loading…
Reference in New Issue
Block a user