diff options
Diffstat (limited to 'src/pathfinder/npf/aystar.cpp')
-rw-r--r-- | src/pathfinder/npf/aystar.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pathfinder/npf/aystar.cpp b/src/pathfinder/npf/aystar.cpp index a4ea8f70c..581b76921 100644 --- a/src/pathfinder/npf/aystar.cpp +++ b/src/pathfinder/npf/aystar.cpp @@ -167,8 +167,9 @@ static int AyStarMain_Loop(AyStar *aystar) /* Check for end node and if found, return that code */ if (aystar->EndNodeCheck(aystar, current) == AYSTAR_FOUND_END_NODE) { - if (aystar->FoundEndNode != NULL) + if (aystar->FoundEndNode != NULL) { aystar->FoundEndNode(aystar, current); + } free(current); return AYSTAR_FOUND_END_NODE; } |