mirror of
https://github.com/ppy/osu
synced 2024-12-12 18:07:52 +00:00
Fix beatmap import crash when the first timingPoint starts later than a slider
This commit is contained in:
parent
ecb840e26f
commit
72306e8757
@ -39,6 +39,7 @@ namespace osu.Game.Beatmaps
|
||||
|
||||
ControlPoint timingPoint = null;
|
||||
foreach (var controlPoint in ControlPoints)
|
||||
{
|
||||
if (controlPoint.Time <= time)
|
||||
{
|
||||
if (controlPoint.TimingChange)
|
||||
@ -48,7 +49,15 @@ namespace osu.Game.Beatmaps
|
||||
}
|
||||
else overridePoint = controlPoint;
|
||||
}
|
||||
else break;
|
||||
else if (timingPoint == null && controlPoint.TimingChange)
|
||||
{
|
||||
timingPoint = controlPoint;
|
||||
}
|
||||
else
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return timingPoint;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user