Correct node for path length

This commit is contained in:
glax 2023-04-09 21:02:19 +02:00
parent 9e72d50448
commit bb789e731d

View File

@ -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;
}
}
}