1
0
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:
smoogipooo 2017-05-16 18:26:49 +09:00
parent 620b4bf863
commit be4ff5c038

View File

@ -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;