chercher d'autre bug

This commit is contained in:
Yannis Antoine
2025-03-05 16:28:47 +01:00
parent e14bdb0918
commit 01b852210b
3 changed files with 26 additions and 4 deletions
+6 -2
View File
@@ -6,7 +6,7 @@
/* By: yantoine <yantoine@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/14 01:41:17 by yantoine #+# #+# */
/* Updated: 2025/03/05 14:53:12 by yantoine ### ########.fr */
/* Updated: 2025/03/05 16:27:44 by yantoine ### ########.fr */
/* */
/* ************************************************************************** */
@@ -85,8 +85,12 @@ t_scene load_config(const char *filename)
line = scene.all_file[i];
if (!line)
break ;
if (!check_nb_element(scene))
{
ft_free_array(scene.all_file);
exit(1);
}
scene = parsing_line(line, scene);
}
ft_free_array(scene.all_file);
return (scene);