diff options
Diffstat (limited to 'src/ft_check_missing.c')
-rw-r--r-- | src/ft_check_missing.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ft_check_missing.c b/src/ft_check_missing.c index ece2ba6..58ef223 100644 --- a/src/ft_check_missing.c +++ b/src/ft_check_missing.c @@ -27,15 +27,15 @@ int int ft_check_missing(t_cub *clist) { - if (!clist->no_tex_path[0]) + if (!clist->mlist->no_tex_path[0]) return (ft_missing_error("north side texture", clist)); - else if (!clist->so_tex_path[0]) + else if (!clist->mlist->so_tex_path[0]) return (ft_missing_error("south side texture", clist)); - else if (!clist->ea_tex_path[0]) + else if (!clist->mlist->ea_tex_path[0]) return (ft_missing_error("east side texture", clist)); - else if (!clist->we_tex_path[0]) + else if (!clist->mlist->we_tex_path[0]) return (ft_missing_error("west side texture", clist)); - else if (!clist->sprite_path[0]) + else if (!clist->mlist->sprite_path[0]) return (ft_missing_error("sprite texture", clist)); else if (clist->wlist->x_size == 0 || clist->wlist->y_size == 0) return (ft_missing_error("resolution", clist)); |