aboutsummaryrefslogtreecommitdiff
path: root/path.c
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-03-27 08:48:48 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-03-27 08:48:48 +0300
commit7e31a84be58805e3751c5aba27772bbb1716a5f5 (patch)
treed24954e0403340a68db005a2e4d194947298cf8a /path.c
parentc3530ad46236adbba18bf47a5cc3841b0578ff70 (diff)
downloadastar-7e31a84be58805e3751c5aba27772bbb1716a5f5.tar.xz
Add cost_array to neighbours_4dir
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 e32610b..677fa8a 100644
--- a/path.c
+++ b/path.c
@@ -43,7 +43,7 @@ Path breadth_first_search_path_4dir(Map map, size_t width, size_t height, Positi
}
Position na[4];
- unsigned int nc = neighbours_4dir(na, cur, width, height, visited);
+ unsigned int nc = neighbours_4dir(na, NULL, cur, width, height, visited);
for (unsigned int i = 0; i < nc; i++) {
/* The Russian constitution doesn't allow walking on walls */