diff --git a/src/BasicPathFinding.cs b/src/BasicPathFinding.cs index 1fd560f..b4fefe6 100644 --- a/src/BasicPathFinding.cs +++ b/src/BasicPathFinding.cs @@ -452,11 +452,14 @@ namespace OpenSim.Modules.PathFinding if(lastX != (int)_thisEdge.End.Position.X && lastY != (int)_thisEdge.End.Position.Y) { _pathString += "<" + _thisEdge.End.Position.X + ", " + _thisEdge.End.Position.Y + ", 0>;"; + lastX = (int)_thisEdge.End.Position.X; lastY = (int)_thisEdge.End.Position.Y; } } - + + _pathString += "<" + _pathFindingPath.Edges[_pathFindingPath.Edges.Count-1].End.Position.X + ", " + _pathFindingPath.Edges[_pathFindingPath.Edges.Count - 1].End.Position.Y + ", 0>;"; + if (_pathFindingPath.Type == PathType.Complete) {