mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 20:03:21 +08:00
Fix nullref due to missing controlPoints.
This commit is contained in:
parent
ecb840e26f
commit
0b922365bb
@ -59,7 +59,7 @@ namespace osu.Game.Modes.Osu.Objects
|
|||||||
var velocityAdjustment = overridePoint?.VelocityAdjustment ?? 1;
|
var velocityAdjustment = overridePoint?.VelocityAdjustment ?? 1;
|
||||||
var baseVelocity = 100 * baseDifficulty.SliderMultiplier;
|
var baseVelocity = 100 * baseDifficulty.SliderMultiplier;
|
||||||
|
|
||||||
Velocity = baseVelocity / (timingPoint.BeatLength * velocityAdjustment);
|
Velocity = baseVelocity / ((timingPoint?.BeatLength ?? 500) * velocityAdjustment);
|
||||||
TickDistance = baseVelocity / (baseDifficulty.SliderTickRate * velocityAdjustment);
|
TickDistance = baseVelocity / (baseDifficulty.SliderTickRate * velocityAdjustment);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,7 +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 || timingPoint == null)
|
||||||
{
|
{
|
||||||
if (controlPoint.TimingChange)
|
if (controlPoint.TimingChange)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user