diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-15 18:51:30 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-15 18:51:30 +0100 |
commit | fbc52949004a067a5c2cfefae1ff3415dbe04a96 (patch) | |
tree | a887e3657e6abd384d729f51c42a2ac4c0869c77 /src/ft_init_lists.c | |
parent | Merged (diff) | |
download | 42-cub3d-fbc52949004a067a5c2cfefae1ff3415dbe04a96.tar.gz 42-cub3d-fbc52949004a067a5c2cfefae1ff3415dbe04a96.tar.bz2 42-cub3d-fbc52949004a067a5c2cfefae1ff3415dbe04a96.tar.xz 42-cub3d-fbc52949004a067a5c2cfefae1ff3415dbe04a96.tar.zst 42-cub3d-fbc52949004a067a5c2cfefae1ff3415dbe04a96.zip |
In progress
Diffstat (limited to '')
-rw-r--r-- | src/ft_init_lists.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c index dc50231..459e522 100644 --- a/src/ft_init_lists.c +++ b/src/ft_init_lists.c @@ -71,7 +71,8 @@ static t_cub if (!(clist = (t_cub*)malloc(sizeof(t_cub)))) return (NULL); if (!(clist->plist = ft_init_player()) || - !(clist->mlist = ft_init_map())) + !(clist->mlist = ft_init_map()) || + !(clist->errmsg = ft_calloc(1, sizeof(char)))) return (NULL); clist->minimap = 0; clist->f_rgb = ft_init_rgb(); |