Skip to content

Commit

Permalink
Merge pull request #83 from ChromaCat248/main
Browse files Browse the repository at this point in the history
Fix issue #82
  • Loading branch information
jupahe64 authored Dec 5, 2023
2 parents ec3f395 + 68f1891 commit 60e9d5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Fushigi/ui/SceneObjects/bgunit/BGUnitRailSceneObj.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public void OnMouseDown(CourseAreaEditContext ctx, LevelViewport viewport)

int segmentCount = rail.Points.Count;

if (!rail.IsClosed)
if (!rail.IsClosed && rail.Points.Any())
{
segmentCount--;
var delta = Vector3.Distance(rail.Points[0].Position, pos);
Expand Down Expand Up @@ -477,4 +477,4 @@ void IViewportDrawable.Draw2D(CourseAreaEditContext ctx, LevelViewport viewport,
}
}
}
}
}

0 comments on commit 60e9d5d

Please sign in to comment.