chercher d'autre bug
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user