diff options
author | Rudy Bousset <rbousset@z3r8p1.le-101.fr> | 2020-02-13 19:42:05 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z3r8p1.le-101.fr> | 2020-02-13 19:42:05 +0100 |
commit | e29dd2fa3688e1e96a25af3b651da574af08aa90 (patch) | |
tree | cb6486fc91f1b93e61e4dcda25d359095e6aa108 /src/ft_get_tex.c | |
parent | Better code structure (diff) | |
download | 42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.gz 42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.bz2 42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.xz 42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.zst 42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.zip |
Splited structs
Diffstat (limited to 'src/ft_get_tex.c')
-rw-r--r-- | src/ft_get_tex.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ft_get_tex.c b/src/ft_get_tex.c index 240f034..30b360a 100644 --- a/src/ft_get_tex.c +++ b/src/ft_get_tex.c @@ -20,8 +20,8 @@ int8_t { if (!(*words) || !(*(words + 1)) || (*(words + 2))) return (-1); - ft_memdel((void**)&clist->no_tex_path); - if (!(clist->no_tex_path = ft_strdup(*(words + 1)))) + ft_memdel((void**)&clist->mlist->no_tex_path); + if (!(clist->mlist->no_tex_path = ft_strdup(*(words + 1)))) return (-1); return (0); } @@ -31,8 +31,8 @@ int8_t { if (!(*words) || !(*(words + 1)) || (*(words + 2))) return (-1); - ft_memdel((void**)&clist->so_tex_path); - if (!(clist->so_tex_path = ft_strdup(*(words + 1)))) + ft_memdel((void**)&clist->mlist->so_tex_path); + if (!(clist->mlist->so_tex_path = ft_strdup(*(words + 1)))) return (-1); return (0); } @@ -42,8 +42,8 @@ int8_t { if (!(*words) || !(*(words + 1)) || (*(words + 2))) return (-1); - ft_memdel((void**)&clist->ea_tex_path); - if (!(clist->ea_tex_path = ft_strdup(*(words + 1)))) + ft_memdel((void**)&clist->mlist->ea_tex_path); + if (!(clist->mlist->ea_tex_path = ft_strdup(*(words + 1)))) return (-1); return (0); } @@ -53,8 +53,8 @@ int8_t { if (!(*words) || !(*(words + 1)) || (*(words + 2))) return (-1); - ft_memdel((void**)&clist->we_tex_path); - if (!(clist->we_tex_path = ft_strdup(*(words + 1)))) + ft_memdel((void**)&clist->mlist->we_tex_path); + if (!(clist->mlist->we_tex_path = ft_strdup(*(words + 1)))) return (-1); return (0); } |