aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_lists.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p6.le-101.fr>2020-02-02 17:05:54 +0100
committerRudy Bousset <rbousset@z2r5p6.le-101.fr>2020-02-02 17:05:54 +0100
commit8d7f65c1c04f7124f1a34062be377fdbe721c46a (patch)
tree36ef68573148ba58843608a499504138cca3595d /src/ft_init_lists.c
parentRemoved whitespace (diff)
download42-cub3d-8d7f65c1c04f7124f1a34062be377fdbe721c46a.tar.gz
42-cub3d-8d7f65c1c04f7124f1a34062be377fdbe721c46a.tar.bz2
42-cub3d-8d7f65c1c04f7124f1a34062be377fdbe721c46a.tar.xz
42-cub3d-8d7f65c1c04f7124f1a34062be377fdbe721c46a.tar.zst
42-cub3d-8d7f65c1c04f7124f1a34062be377fdbe721c46a.zip
Correct ft_memdel
Diffstat (limited to 'src/ft_init_lists.c')
-rw-r--r--src/ft_init_lists.c2
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);
}