aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_parse_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_parse_map.c')
-rw-r--r--src/ft_parse_map.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c
index 0a4aa45..011dfcf 100644
--- a/src/ft_parse_map.c
+++ b/src/ft_parse_map.c
@@ -48,6 +48,7 @@ ft_parse_map(const char *map_path, t_win *wlist)
ft_exit(2, wlist);
}
ft_get_res(fd, wlist);
- if (ft_get_tex(fd, wlist) < 0)
+ if (ft_get_tex(fd, wlist) < 0 ||
+ ft_get_sprite_tex(fd, wlist) < 0)
return ;
}