aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_res.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-01-29 16:09:52 +0100
committerRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-01-29 16:09:52 +0100
commitbec06f4323a2cb2c0bc1594df797c529a35d41e2 (patch)
treee2dbc17ea4f8ab4485c90da51a18e32e28d01267 /src/ft_get_res.c
parentGood for now, I'll continue later (diff)
download42-cub3d-bec06f4323a2cb2c0bc1594df797c529a35d41e2.tar.gz
42-cub3d-bec06f4323a2cb2c0bc1594df797c529a35d41e2.tar.bz2
42-cub3d-bec06f4323a2cb2c0bc1594df797c529a35d41e2.tar.xz
42-cub3d-bec06f4323a2cb2c0bc1594df797c529a35d41e2.tar.zst
42-cub3d-bec06f4323a2cb2c0bc1594df797c529a35d41e2.zip
Got colors
Diffstat (limited to '')
-rw-r--r--src/ft_get_res.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ft_get_res.c b/src/ft_get_res.c
index 850e82e..6fecb74 100644
--- a/src/ft_get_res.c
+++ b/src/ft_get_res.c
@@ -18,10 +18,7 @@ ft_get_res(char **words, t_cub *clist)
{
if (!(*words + 0) || !(*(words + 1))
|| !(*(words + 2)) || (*(words + 3)))
- {
- ft_free_words(words);
- return (ft_map_error(clist));
- }
+ return (-1);
ft_checkdigit(words[1], clist);
ft_checkdigit(words[2], clist);
clist->wlist->x_size = ft_atoi(words[1]);