aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_lists.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_init_lists.c')
-rw-r--r--src/ft_init_lists.c11
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);
}