mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
Fix possible no-children-in-sequence exception.
This commit is contained in:
parent
620b4bf863
commit
be4ff5c038
@ -132,6 +132,9 @@ namespace osu.Game.Rulesets.Mania.Timing
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Children.Any())
|
||||
return;
|
||||
|
||||
float height = Children.Select(child => child.Y + child.Height).Max();
|
||||
|
||||
Height = height;
|
||||
|
Loading…
Reference in New Issue
Block a user