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;
foreach (var element in mainComponents.Components)
processDrawable(element);
for (int i = 0; i < mainComponents.Components.Count; i++)
processDrawable(mainComponents.Components[i]);
if (rulesetComponents != null)
{
foreach (var element in rulesetComponents.Components)
processDrawable(element);
for (int i = 0; i < rulesetComponents.Components.Count; i++)
processDrawable(rulesetComponents.Components[i]);
}
if (lowestTopScreenSpaceRight.HasValue)