From 70724899adedaba82df6c42efef34ec460a247ca Mon Sep 17 00:00:00 2001 From: Martin Felis Date: Sun, 12 Feb 2023 16:49:47 +0100 Subject: [PATCH] Some moar movement improvements. --- components/NavigationComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }