Skip to content

Commit

Permalink
Update AStarExample.cs
Browse files Browse the repository at this point in the history
Corrected initialization of parentPos in GetSuccessors() method of MapSearchNode to (-1, -1).
  • Loading branch information
Shubhamkashyap1601 authored Oct 10, 2023
1 parent d6d5351 commit 099cf25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cs/AStarExample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 099cf25

Please sign in to comment.