diff --git a/cs/AStarExample.cs b/cs/AStarExample.cs index a85bc7a..5246cf5 100644 --- a/cs/AStarExample.cs +++ b/cs/AStarExample.cs @@ -132,7 +132,7 @@ void AddNeighbourNode(int xOffset, int yOffset, NodePosition parentPos, AStarPat // is specific to the application public bool GetSuccessors(AStarPathfinder aStarSearch, MapSearchNode parentNode) { - NodePosition parentPos = new NodePosition(0, 0); + NodePosition parentPos = new NodePosition(-1, -1); if (parentNode != null) {