aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_key_loop.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-03-12 18:56:59 +0100
committerRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-03-12 18:56:59 +0100
commit141fb4d33f73cac99b1b19e475f83fb755f208a2 (patch)
treee93c2d490440caee29f2c85d86c9dc9bd8512a28 /src/ft_key_loop.c
parentkk (diff)
download42-cub3d-141fb4d33f73cac99b1b19e475f83fb755f208a2.tar.gz
42-cub3d-141fb4d33f73cac99b1b19e475f83fb755f208a2.tar.bz2
42-cub3d-141fb4d33f73cac99b1b19e475f83fb755f208a2.tar.xz
42-cub3d-141fb4d33f73cac99b1b19e475f83fb755f208a2.tar.zst
42-cub3d-141fb4d33f73cac99b1b19e475f83fb755f208a2.zip
good
Diffstat (limited to 'src/ft_key_loop.c')
-rw-r--r--src/ft_key_loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_key_loop.c b/src/ft_key_loop.c
index 45ed379..66f72ef 100644
--- a/src/ft_key_loop.c
+++ b/src/ft_key_loop.c
@@ -87,7 +87,7 @@ int
if ((uint32_t)cl->plist.pos_x == cl->mlist.nlx &&
(uint32_t)cl->plist.pos_y == cl->mlist.nly)
{
- return ((ft_warp_level(cl) < 0) ?
+ return ((ft_warp_level(cl->mlist.nlevel_path, cl) < 0) ?
(ft_exit(FT_RET_FAILED_STRUCTS, cl)) : (0));
}
}