summaryrefslogtreecommitdiff
path: root/aystar.c
diff options
context:
space:
mode:
Diffstat (limited to 'aystar.c')
-rw-r--r--aystar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/aystar.c b/aystar.c
index 22d4ba813..4ed9058b8 100644
--- a/aystar.c
+++ b/aystar.c
@@ -146,7 +146,7 @@ int AyStarMain_Loop(AyStar *aystar) {
if (current == NULL) return AYSTAR_EMPTY_OPENLIST;
// Check for end node and if found, return that code
- if (aystar->EndNodeCheck(aystar, current) == AYSTAR_FOUND_END_NODE) {
+ if (aystar->EndNodeCheck(aystar, &current->path.node) == AYSTAR_FOUND_END_NODE) {
if (aystar->FoundEndNode != NULL)
aystar->FoundEndNode(aystar, current);
free(current);