checker erreur limite de config

This commit is contained in:
YANNIS
2025-02-22 18:19:02 +01:00
parent 660d18d859
commit fe4bc4b980
15 changed files with 89 additions and 50 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ int main(int argc, char **argv)
ft_bzero(&app, sizeof(t_app));
init_app_config(&app, argc, argv);
if (init_mlx_and_image(&app))
if (app.scene.num_camera == 0 || init_mlx_and_image(&app))
return (1);
setup_hooks(&app);
mlx_loop(app.mlx);