diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-03-27 08:48:48 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-03-27 08:48:48 +0300 |
| commit | 7e31a84be58805e3751c5aba27772bbb1716a5f5 (patch) | |
| tree | d24954e0403340a68db005a2e4d194947298cf8a /path.c | |
| parent | c3530ad46236adbba18bf47a5cc3841b0578ff70 (diff) | |
| download | astar-7e31a84be58805e3751c5aba27772bbb1716a5f5.tar.xz | |
Add cost_array to neighbours_4dir
Diffstat (limited to 'path.c')
| -rw-r--r-- | path.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |
