aboutsummaryrefslogtreecommitdiff
path: root/bmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'bmp.c')
-rw-r--r--bmp.c2
1 files changed, 1 insertions, 1 deletions
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];
}
}