diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-15 20:29:21 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-15 20:29:21 +0100 |
commit | 030fe8c3316d1e1f5f3dea81c3fffd8e00c16afa (patch) | |
tree | aa661716c5ffdd844e41bccb9be833637eaaa3b8 /src/ft_init_lists.c | |
parent | In progress (diff) | |
download | 42-cub3d-030fe8c3316d1e1f5f3dea81c3fffd8e00c16afa.tar.gz 42-cub3d-030fe8c3316d1e1f5f3dea81c3fffd8e00c16afa.tar.bz2 42-cub3d-030fe8c3316d1e1f5f3dea81c3fffd8e00c16afa.tar.xz 42-cub3d-030fe8c3316d1e1f5f3dea81c3fffd8e00c16afa.tar.zst 42-cub3d-030fe8c3316d1e1f5f3dea81c3fffd8e00c16afa.zip |
Work in progress, res now
Diffstat (limited to 'src/ft_init_lists.c')
-rw-r--r-- | src/ft_init_lists.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c index 459e522..95f0488 100644 --- a/src/ft_init_lists.c +++ b/src/ft_init_lists.c @@ -71,9 +71,9 @@ 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->errmsg = ft_calloc(1, sizeof(char)))) + !(clist->mlist = ft_init_map())) return (NULL); + ft_bzero(clist->errmsg, 40); clist->minimap = 0; clist->f_rgb = ft_init_rgb(); clist->c_rgb = ft_init_rgb(); |