aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_lists.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-01-24 17:57:20 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-01-24 17:57:20 +0100
commit6776a1f3491663c85480326e0d01f9a6c5455bbd (patch)
tree035435a20e933c43b192552a5b3f766fe55131e5 /src/ft_init_lists.c
parentft_split redone (diff)
download42-cub3d-6776a1f3491663c85480326e0d01f9a6c5455bbd.tar.gz
42-cub3d-6776a1f3491663c85480326e0d01f9a6c5455bbd.tar.bz2
42-cub3d-6776a1f3491663c85480326e0d01f9a6c5455bbd.tar.xz
42-cub3d-6776a1f3491663c85480326e0d01f9a6c5455bbd.tar.zst
42-cub3d-6776a1f3491663c85480326e0d01f9a6c5455bbd.zip
Tons of changes
Diffstat (limited to 'src/ft_init_lists.c')
-rw-r--r--src/ft_init_lists.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c
index 126843c..4aa2d81 100644
--- a/src/ft_init_lists.c
+++ b/src/ft_init_lists.c
@@ -21,5 +21,11 @@ t_cub
if (!(clist = (t_cub*)malloc(sizeof(t_cub))))
return (NULL);
+ if (!(clist->no_tex_path = (char*)ft_calloc(1, 1)) ||
+ !(clist->so_tex_path = (char*)ft_calloc(1, 1)) ||
+ !(clist->ea_tex_path = (char*)ft_calloc(1, 1)) ||
+ !(clist->we_tex_path = (char*)ft_calloc(1, 1)) ||
+ !(clist->sprite_path = (char*)ft_calloc(1, 1)))
+ return (NULL);
return (clist);
}