diff options
Diffstat (limited to 'src/ft_init_lists.c')
-rw-r--r-- | src/ft_init_lists.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c index 63357ec..285dbd8 100644 --- a/src/ft_init_lists.c +++ b/src/ft_init_lists.c @@ -32,6 +32,7 @@ t_cub !(clist->ea_tex_path = (char*)ft_calloc(1, sizeof(char))) || !(clist->we_tex_path = (char*)ft_calloc(1, sizeof(char))) || !(clist->sprite_path = (char*)ft_calloc(1, sizeof(char))) || + !(clist->mapl = (char*)ft_calloc(1, sizeof(char))) || !(clist->map = (char**)ft_calloc(2, sizeof(char*))) || !(clist->map[0] = (char*)ft_calloc(1, sizeof(char)))) return (NULL); @@ -40,5 +41,6 @@ t_cub clist->c_color = -1; clist->map_w = 0; clist->line_chk = 0; + clist->nsew = 0; return (clist); } |