From 907bbcf4ef754a6e784a176b1a96b5a01b65cb67 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Mon, 3 Feb 2020 19:55:55 +0100 Subject: Missing texture bug fix --- src/ft_check_missing.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ft_check_missing.c') diff --git a/src/ft_check_missing.c b/src/ft_check_missing.c index 9f3698b..32e2943 100644 --- a/src/ft_check_missing.c +++ b/src/ft_check_missing.c @@ -27,13 +27,13 @@ int int ft_check_missing(t_cub *clist) { - if (!clist->no_tex_path) + if (!clist->no_tex_path[0]) return (ft_missing_error("north side texture", clist)); - else if (!clist->so_tex_path) + else if (!clist->so_tex_path[0]) return (ft_missing_error("south side texture", clist)); - else if (!clist->ea_tex_path) + else if (!clist->ea_tex_path[0]) return (ft_missing_error("east side texture", clist)); - else if (!clist->we_tex_path) + else if (!clist->we_tex_path[0]) return (ft_missing_error("west side texture", clist)); else if (clist->wlist->x_size < 0 || clist->wlist->y_size < 0) return (ft_missing_error("resolution", clist)); -- cgit v1.2.3