mirror of
https://github.com/osukey/osukey.git
synced 2025-05-24 15:07:20 +09: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…
x
Reference in New Issue
Block a user