1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 22:33:05 +08:00

Fix HUDOverlay allocations

This commit is contained in:
Andrei Zavatski 2024-02-25 17:59:20 +03:00
parent e8d2abc4f7
commit f948f8ee5c

View File

@ -258,13 +258,13 @@ namespace osu.Game.Screens.Play
Vector2? highestBottomScreenSpace = null; Vector2? highestBottomScreenSpace = null;
foreach (var element in mainComponents.Components) for (int i = 0; i < mainComponents.Components.Count; i++)
processDrawable(element); processDrawable(mainComponents.Components[i]);
if (rulesetComponents != null) if (rulesetComponents != null)
{ {
foreach (var element in rulesetComponents.Components) for (int i = 0; i < rulesetComponents.Components.Count; i++)
processDrawable(element); processDrawable(rulesetComponents.Components[i]);
} }
if (lowestTopScreenSpaceRight.HasValue) if (lowestTopScreenSpaceRight.HasValue)