diff --git a/components/NavigationComponent.cs b/components/NavigationComponent.cs index fc44f78..ef9c399 100644 --- a/components/NavigationComponent.cs +++ b/components/NavigationComponent.cs @@ -87,7 +87,7 @@ public class NavigationComponent : Node Globals.EpsPositionSquared) { // Remove the last one, because it is only the position rounded to HexGrid coordinates. - if (_pathWorldNavigationPoints.Count > 1) + if (_pathWorldNavigationPoints.Count > 0) { _pathWorldNavigationPoints.RemoveAt(_pathWorldNavigationPoints.Count - 1); }