From db5320aa188d773c8edc32eee844127457ef280c Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Tue, 14 Apr 2026 21:41:33 +0300 Subject: Improve the Path type --- bmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bmp.c') diff --git a/bmp.c b/bmp.c index 739c2ad..b44ea39 100644 --- a/bmp.c +++ b/bmp.c @@ -77,7 +77,7 @@ void map_to_bmp(Map map, size_t map_width, size_t map_height, Position start, Po buf[(height - cur.y - 1) * width_in_bytes + cur.x * 3 + 0] = 0; /* b */ buf[(height - cur.y - 1) * width_in_bytes + cur.x * 3 + 1] = 0; /* g */ buf[(height - cur.y - 1) * width_in_bytes + cur.x * 3 + 2] = 255; /* r */ - cur = path[cur.y][cur.x].parent; + cur = path[cur.y][cur.x]; } } -- cgit v1.2.3