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:
parent
e8d2abc4f7
commit
f948f8ee5c
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user