diff --git a/osu.Game.Rulesets.Catch/Edit/CatchDistanceSnapGrid.cs b/osu.Game.Rulesets.Catch/Edit/CatchDistanceSnapGrid.cs index 5808b332b0..1b9705e8dc 100644 --- a/osu.Game.Rulesets.Catch/Edit/CatchDistanceSnapGrid.cs +++ b/osu.Game.Rulesets.Catch/Edit/CatchDistanceSnapGrid.cs @@ -26,7 +26,7 @@ namespace osu.Game.Rulesets.Catch.Edit private readonly List verticalPaths = new List(); - private readonly List> verticalLineVertices = new List>(); + private readonly List verticalLineVertices = new List(); [Resolved] private Playfield playfield { get; set; } @@ -48,7 +48,7 @@ namespace osu.Game.Rulesets.Catch.Edit Alpha = 0.5f, }); - verticalLineVertices.Add(new List { Vector2.Zero, Vector2.Zero }); + verticalLineVertices.Add(new[] { Vector2.Zero, Vector2.Zero }); } AddRangeInternal(verticalPaths); @@ -70,7 +70,7 @@ namespace osu.Game.Rulesets.Catch.Edit float x = (float)((endTime - StartTime) * velocity); float y = hitObjectContainer.PositionAtTime(endTime, StartTime); - List lineVertices = verticalLineVertices[i]; + Vector2[] lineVertices = verticalLineVertices[i]; lineVertices[0] = new Vector2(StartX, startY); lineVertices[1] = lineVertices[0] + new Vector2(x, y);