From 3fe40e249fbad468347b2a0d643b19f1f5f3f524 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 29 Jan 2020 23:21:16 +0100 Subject: I've seen enough --- src/ft_init_winlx.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/ft_init_winlx.c') diff --git a/src/ft_init_winlx.c b/src/ft_init_winlx.c index ff42e69..d45f19d 100644 --- a/src/ft_init_winlx.c +++ b/src/ft_init_winlx.c @@ -10,9 +10,6 @@ ft_init_winlx(t_cub *clist) if (!(clist->wlist->wlx = mlx_init())) return (-1); ft_memdel(clist->wlist->winptr); - if (!(clist->wlist->winptr = malloc(clist->wlist->x_size - * clist->wlist->y_size))) - return (-1); if (!(clist->wlist->winptr = mlx_new_window(clist->wlist->wlx, clist->wlist->x_size, clist->wlist->y_size, "Cub3D"))) return (-1); -- cgit v1.2.3