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