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

@ -39,7 +39,7 @@ namespace osu.Game.Beatmaps
ControlPoint timingPoint = null;
foreach (var controlPoint in ControlPoints)
if (controlPoint.Time <= time)
if (controlPoint.Time <= time || timingPoint == null)
{
if (controlPoint.TimingChange)
{