diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-01-24 17:57:20 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-01-24 17:57:20 +0100 |
commit | 6776a1f3491663c85480326e0d01f9a6c5455bbd (patch) | |
tree | 035435a20e933c43b192552a5b3f766fe55131e5 /src/ft_init_lists.c | |
parent | ft_split redone (diff) | |
download | 42-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.c | 6 |
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); } |