From bb789e731d7d5e9993ad558ed61c1fa196b4cb18 Mon Sep 17 00:00:00 2001 From: glax Date: Sun, 9 Apr 2023 21:02:19 +0200 Subject: [PATCH] Correct node for path length --- API/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/API/Program.cs b/API/Program.cs index 7f14900..0356d22 100644 --- a/API/Program.cs +++ b/API/Program.cs @@ -68,7 +68,7 @@ internal class PathResult if (pathNodes.Count > 0) { this.pathWeight = pathNodes.Last().currentPathWeight; - this.pathTravelDistance = pathNodes.Last().currentPathLength; + this.pathTravelDistance = pathNodes.First().currentPathLength; } } } \ No newline at end of file