aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_map.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-15 01:02:32 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-15 01:02:32 +0100
commit9f35e7fab50809cd74e3bfffff67a81023abc837 (patch)
tree8ed891643db7c95aa7f72a1bab2a5f02efbbd078 /src/ft_init_map.c
parentLooks like I have to pthread this shit (diff)
download42-cub3d-9f35e7fab50809cd74e3bfffff67a81023abc837.tar.gz
42-cub3d-9f35e7fab50809cd74e3bfffff67a81023abc837.tar.bz2
42-cub3d-9f35e7fab50809cd74e3bfffff67a81023abc837.tar.xz
42-cub3d-9f35e7fab50809cd74e3bfffff67a81023abc837.tar.zst
42-cub3d-9f35e7fab50809cd74e3bfffff67a81023abc837.zip
I need a macOS
Diffstat (limited to 'src/ft_init_map.c')
-rw-r--r--src/ft_init_map.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ft_init_map.c b/src/ft_init_map.c
index 813a795..cf5bebe 100644
--- a/src/ft_init_map.c
+++ b/src/ft_init_map.c
@@ -34,9 +34,7 @@ static int8_t
!(mlist->music_cmd = (char*)ft_calloc(1, sizeof(char))) ||
!(mlist->mapl = (char*)ft_calloc(1, sizeof(char))) ||
!(mlist->map = (char**)ft_calloc(2, sizeof(char*))) ||
- !(mlist->map[0] = (char*)ft_calloc(1, sizeof(char))) ||
- !(mlist->mcmd_words = (char**)ft_calloc(2, sizeof(char*))) ||
- !(mlist->mcmd_words[0] = (char*)ft_calloc(1, sizeof(char))))
+ !(mlist->map[0] = (char*)ft_calloc(1, sizeof(char))))
return (-1);
return (0);
}
@@ -75,7 +73,6 @@ int8_t
if (ft_init_map_callocs(mlist) < 0)
return (-1);
mlist->map[1] = 0;
- mlist->mcmd_words[1] = 0;
if (ft_calloc_sprites(mlist) < 0)
return (-1);
mlist->map_w = 0;