aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index c9a160d..96919a3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -34,6 +34,8 @@ int
ft_wall_tex_init(clist);
if (argc < 3)
{
+ if (ft_init_winptr(clist) < 0)
+ return (ft_exit(FT_RET_FAILED_MLX, clist));
ft_draw_scene(clist);
ft_hooks_and_loops(clist->wlist, clist);
}
@@ -47,5 +49,6 @@ int
ft_dprintf(STDERR_FILENO, "Error\n\033[1;31mBad arguments\n\033[0m");
return (ft_exit(FT_RET_BAD_ARGV, clist));
}
+ /* ft_music(clist); */
return (0);
}