Correct node for path length
This commit is contained in:
parent
9e72d50448
commit
bb789e731d
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user