aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_map.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-04 16:03:30 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-04 16:03:30 +0100
commitdea9844db4bf893525d692209d004968e4bf89ad (patch)
tree5a7547d2adddfcd2c1c15a8e1db6c86344b46640 /src/ft_init_map.c
parentInit bmp (diff)
download42-cub3d-dea9844db4bf893525d692209d004968e4bf89ad.tar.gz
42-cub3d-dea9844db4bf893525d692209d004968e4bf89ad.tar.bz2
42-cub3d-dea9844db4bf893525d692209d004968e4bf89ad.tar.xz
42-cub3d-dea9844db4bf893525d692209d004968e4bf89ad.tar.zst
42-cub3d-dea9844db4bf893525d692209d004968e4bf89ad.zip
Tab
Diffstat (limited to '')
-rw-r--r--src/ft_init_map.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_init_map.c b/src/ft_init_map.c
index e2cfa21..4fa127c 100644
--- a/src/ft_init_map.c
+++ b/src/ft_init_map.c
@@ -18,7 +18,8 @@
static int8_t
ft_init_map_callocs(t_map *mlist)
{
- if (!(mlist->no_tex_path = (char*)ft_calloc(1, sizeof(char))) ||
+ if (!(mlist->filename = (char*)ft_calloc(1, sizeof(char))) ||
+ !(mlist->no_tex_path = (char*)ft_calloc(1, sizeof(char))) ||
!(mlist->so_tex_path = (char*)ft_calloc(1, sizeof(char))) ||
!(mlist->ea_tex_path = (char*)ft_calloc(1, sizeof(char))) ||
!(mlist->we_tex_path = (char*)ft_calloc(1, sizeof(char))) ||