diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-14 21:41:33 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-14 21:41:33 +0300 |
| commit | db5320aa188d773c8edc32eee844127457ef280c (patch) | |
| tree | 8e673cdda6c78555542bf04605c5af45d49d3062 /bmp.c | |
| parent | de6a945fc804e8da48dcb9a284fdc79db0b9a06e (diff) | |
| download | astar-db5320aa188d773c8edc32eee844127457ef280c.tar.xz | |
Improve the Path type
Diffstat (limited to 'bmp.c')
| -rw-r--r-- | bmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; } } |
