1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 19:53:23 +08:00

Fix crash if ruleset components container is not present

This commit is contained in:
Bartłomiej Dach 2024-01-22 13:45:55 +01:00
parent ee3de9c522
commit 99d3fcc326
No known key found for this signature in database

View File

@ -172,7 +172,10 @@ namespace osu.Game.Screens.Play
},
};
hideTargets = new List<Drawable> { mainComponents, rulesetComponents, playfieldComponents, topRightElements };
hideTargets = new List<Drawable> { mainComponents, playfieldComponents, topRightElements };
if (rulesetComponents != null)
hideTargets.Add(rulesetComponents);
if (!alwaysShowLeaderboard)
hideTargets.Add(LeaderboardFlow);