diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-03 14:47:33 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-03 14:47:33 +0100 |
commit | 8866ef5699150d0549096efa94fc311ff7a48dc7 (patch) | |
tree | 4a03267f7e7f9b399a9ad0536b50ba6a90407e47 /src/ft_get_tex_nl.c | |
parent | Music is pretty bav (diff) | |
download | 42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.tar.gz 42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.tar.bz2 42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.tar.xz 42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.tar.zst 42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.zip |
Changing stuff
Diffstat (limited to '')
-rw-r--r-- | src/ft_get_tex_nl.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ft_get_tex_nl.c b/src/ft_get_tex_nl.c index 00155de..10dba91 100644 --- a/src/ft_get_tex_nl.c +++ b/src/ft_get_tex_nl.c @@ -19,23 +19,23 @@ int8_t { if (!(*words) || !(*(words + 1)) || (*(words + 2))) { - ft_sprintf(clist->errmsg, "%s", FT_ERR_ARGS); + ft_sprintf(clist.errmsg, "%s", FT_ERR_ARGS); return (-1); } if (ft_check_ext(*(words + 1), ".xpm") < 0) { - ft_sprintf(clist->errmsg, "%s", FT_ERR_NOT_A_XPM); + ft_sprintf(clist.errmsg, "%s", FT_ERR_NOT_A_XPM); return (-1); } - ft_memdel((void**)&clist->mlist->nl_tex_path); - if (!(clist->mlist->nl_tex_path = ft_strdup(*(words + 1)))) + ft_memdel((void**)&clist.mlist.nl_tex_path); + if (!(clist.mlist.nl_tex_path = ft_strdup(*(words + 1)))) { - ft_sprintf(clist->errmsg, "%s", FT_ERR_ALLOCATE); + ft_sprintf(clist.errmsg, "%s", FT_ERR_ALLOCATE); return (-1); } - if (ft_check_not_found(clist->mlist->nl_tex_path) < 0) + if (ft_check_not_found(clist.mlist.nl_tex_path) < 0) { - ft_sprintf(clist->errmsg, FT_ERR_RD_NL_TEX); + ft_sprintf(clist.errmsg, FT_ERR_RD_NL_TEX); return (-1); } return (0); |