diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-01-29 23:21:16 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-01-29 23:21:16 +0100 |
commit | 3fe40e249fbad468347b2a0d643b19f1f5f3f524 (patch) | |
tree | f696e53265307a1b15b36c2d72bb6dfbd95a8885 /src/ft_init_lists.c | |
parent | it's wonderful (diff) | |
download | 42-cub3d-3fe40e249fbad468347b2a0d643b19f1f5f3f524.tar.gz 42-cub3d-3fe40e249fbad468347b2a0d643b19f1f5f3f524.tar.bz2 42-cub3d-3fe40e249fbad468347b2a0d643b19f1f5f3f524.tar.xz 42-cub3d-3fe40e249fbad468347b2a0d643b19f1f5f3f524.tar.zst 42-cub3d-3fe40e249fbad468347b2a0d643b19f1f5f3f524.zip |
I've seen enough
Diffstat (limited to 'src/ft_init_lists.c')
-rw-r--r-- | src/ft_init_lists.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c index 4fb5256..217d303 100644 --- a/src/ft_init_lists.c +++ b/src/ft_init_lists.c @@ -11,11 +11,9 @@ t_win if (!(wlist = (t_win*)malloc(sizeof(t_win)))) return (NULL); - if (!(wlist->wlx = ft_calloc(1, 1)) || - !(wlist->winptr = ft_calloc(1, 1))) + if (!(wlist->wlx = malloc(1)) || + !(wlist->winptr = malloc(1))) return (NULL); - wlist->wlx = NULL; - wlist->winptr = NULL; wlist->inited = 0; wlist->x_size = -1; wlist->y_size = -1; @@ -44,10 +42,5 @@ t_cub clist->map[1] = 0; clist->map_w = 0; clist->line_chk = 0; - clist->no_tex_path = NULL; - clist->so_tex_path = NULL; - clist->ea_tex_path = NULL; - clist->we_tex_path = NULL; - clist->sprite_path = NULL; return (clist); } |