diff --git a/src/BasicPathFinding.cs b/src/BasicPathFinding.cs index d624d38..354bed7 100644 --- a/src/BasicPathFinding.cs +++ b/src/BasicPathFinding.cs @@ -326,6 +326,9 @@ namespace OpenSim.Modules.PathFinding if(_env.Start != null && _env.Target != null) { + if(_env.Start.PositionX == _env.Target.PositionX && _env.Start.PositionY == _env.Target.PositionY) + m_scriptModule.DispatchReply(requestData.ScriptID, 19850, "", requestData.RequestID.ToString()); + GridSize _pathFindingGridSize = new GridSize(_env.Size, _env.Size); Roy_T.AStar.Primitives.Size _pathFindingCellSize = new Roy_T.AStar.Primitives.Size(Distance.FromMeters(1), Distance.FromMeters(1)); Velocity _pathFindingVelocity = Velocity.FromKilometersPerHour(11.5f);