From 7e31a84be58805e3751c5aba27772bbb1716a5f5 Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Fri, 27 Mar 2026 08:48:48 +0300 Subject: Add cost_array to neighbours_4dir --- path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'path.c') 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 */ -- cgit v1.2.3