1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-07 01:23:56 +08:00

Don't reuse the same control point references for sliders (#7230)

Don't reuse the same control point references for sliders
This commit is contained in:
Dean Herbert
2019-12-16 16:03:37 +09:00
committed by GitHub
Unverified
2 changed files with 2 additions and 2 deletions
@@ -128,7 +128,7 @@ namespace osu.Game.Rulesets.Catch.Objects
if (value != null)
{
path.ControlPoints.AddRange(value.ControlPoints);
path.ControlPoints.AddRange(value.ControlPoints.Select(c => new PathControlPoint(c.Position.Value, c.Type.Value)));
path.ExpectedDistance.Value = value.ExpectedDistance.Value;
}
}
+1 -1
View File
@@ -39,7 +39,7 @@ namespace osu.Game.Rulesets.Osu.Objects
if (value != null)
{
path.ControlPoints.AddRange(value.ControlPoints);
path.ControlPoints.AddRange(value.ControlPoints.Select(c => new PathControlPoint(c.Position.Value, c.Type.Value)));
path.ExpectedDistance.Value = value.ExpectedDistance.Value;
}
}