aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_select_get.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-26 16:11:56 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-26 16:11:56 +0100
commit7f57c427d26d8b0c63feac5d0e7b8249707913eb (patch)
treec5bcb6957791278a2e66bfa994ba72eff6241811 /src/ft_select_get.c
parentOk (diff)
download42-cub3d-7f57c427d26d8b0c63feac5d0e7b8249707913eb.tar.gz
42-cub3d-7f57c427d26d8b0c63feac5d0e7b8249707913eb.tar.bz2
42-cub3d-7f57c427d26d8b0c63feac5d0e7b8249707913eb.tar.xz
42-cub3d-7f57c427d26d8b0c63feac5d0e7b8249707913eb.tar.zst
42-cub3d-7f57c427d26d8b0c63feac5d0e7b8249707913eb.zip
Stack overflow fix
Diffstat (limited to 'src/ft_select_get.c')
-rw-r--r--src/ft_select_get.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_select_get.c b/src/ft_select_get.c
index 143dc09..88507a3 100644
--- a/src/ft_select_get.c
+++ b/src/ft_select_get.c
@@ -33,10 +33,10 @@ static int8_t
return (-1);
else if (ret == 5 && (clist->mlist.sprite_path[0][0]))
return (-1);
- else if (ret == 6 && ((clist->f_rgb.r != -1) || (clist->f_rgb.g != -1)
+ if (ret == 6 && ((clist->f_rgb.r != -1) || (clist->f_rgb.g != -1)
|| (clist->f_rgb.b != -1)))
return (-1);
- else if (ret == 7 && ((clist->c_rgb.r != -1) || (clist->c_rgb.g != -1)
+ if (ret == 7 && ((clist->c_rgb.r != -1) || (clist->c_rgb.g != -1)
|| (clist->c_rgb.b != -1)))
return (-1);
return (ret);