diff options
Diffstat (limited to 'src/ft_init_winlx.c')
-rw-r--r-- | src/ft_init_winlx.c | 3 |
1 files changed, 0 insertions, 3 deletions
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); |