Fix sequential speed change visualiser not working with 0 control points

This commit is contained in:
smoogipoo 2018-06-08 14:49:45 +09:00
parent ee64760406
commit 2a48e0e44a

View File

@ -93,6 +93,9 @@ namespace osu.Game.Rulesets.UI.Scrolling.Visualisers
/// <returns>A positive value indicating the position at <paramref name="time"/>.</returns>
private double positionAt(double time, double timeRange)
{
if (controlPoints.Count == 0)
return time / timeRange;
double length = 0;
// We need to consider all timing points until the specified time and not just the currently-active one,