aboutsummaryrefslogtreecommitdiff
path: root/path.c
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-03-26 12:54:15 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-03-26 12:54:15 +0300
commit492ed6b629d5f1e22fd53f2f44b911d0a45d01f7 (patch)
treeef0e0e0faa84e64d4560d400bff89b76bee75474 /path.c
parent056ffbf79ff554d7338b0234a2e69b66eb799da1 (diff)
downloadastar-492ed6b629d5f1e22fd53f2f44b911d0a45d01f7.tar.xz
Add cost_array into neighbours_8dir()
Diffstat (limited to 'path.c')
-rw-r--r--path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/path.c b/path.c
index adce6b2..37f2dbf 100644
--- a/path.c
+++ b/path.c
@@ -83,7 +83,7 @@ Path breadth_first_search_path_8dir(Map map, size_t width, size_t height, Positi
}
Position na[8];
- unsigned int nc = neighbours_8dir(na, cur, width, height, visited);
+ unsigned int nc = neighbours_8dir(na, NULL, cur, width, height, visited);
for (unsigned int i = 0; i < nc; i++) {
/* The Russian constitution doesn't allow walking on walls */