Fix nullref due to missing controlPoints.

This commit is contained in:
Dean Herbert
2017-02-17 15:27:42 +09:00
parent ecb840e26f
commit 0b922365bb
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ namespace osu.Game.Modes.Osu.Objects
var velocityAdjustment = overridePoint?.VelocityAdjustment ?? 1;
var baseVelocity = 100 * baseDifficulty.SliderMultiplier;
Velocity = baseVelocity / (timingPoint.BeatLength * velocityAdjustment);
Velocity = baseVelocity / ((timingPoint?.BeatLength ?? 500) * velocityAdjustment);
TickDistance = baseVelocity / (baseDifficulty.SliderTickRate * velocityAdjustment);
}