From 492ed6b629d5f1e22fd53f2f44b911d0a45d01f7 Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Thu, 26 Mar 2026 12:54:15 +0300 Subject: Add cost_array into neighbours_8dir() --- path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'path.c') 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 */ -- cgit v1.2.3