diff --git a/src/main.c b/src/main.c index 203bdf0..3ae8f7c 100644 --- a/src/main.c +++ b/src/main.c @@ -6,7 +6,7 @@ /* By: kcolin +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/07/17 14:14:30 by kcolin #+# #+# */ -/* Updated: 2025/08/12 14:48:31 by tchampio ### ########.fr */ +/* Updated: 2025/08/12 14:49:01 by tchampio ### ########.fr */ /* */ /* ************************************************************************** */ @@ -64,7 +64,6 @@ int main(int argc, char **argv) if (argc < 2) return (ft_printf("Error: Missing cub3d file\n"), 1); init_cub3d_data(&data, argv); - data.sprite_list = ft_calloc(sizeof(t_sprite *), MAX_SPRITES); mlx_hook(data.mlx_win, KeyPress, KeyPressMask, keypress_handler, &data); mlx_hook(data.mlx_win, KeyRelease, KeyReleaseMask, keyrelease_handler, &data);