diff options
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]; } } |
