mirror of
https://github.com/ppy/osu
synced 2024-12-27 09:23:15 +00:00
Fix HUDOverlay allocations
This commit is contained in:
parent
e8d2abc4f7
commit
f948f8ee5c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user