Khaïs COLIN 2025-07-21 11:50:30 +02:00
parent c5f15dbf11
commit 2c7eef8f6c
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo

View file

@ -6,7 +6,7 @@
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/07/17 14:14:30 by kcolin #+# #+# */
/* Updated: 2025/07/21 11:42:12 by kcolin ### ########.fr */
/* Updated: 2025/07/21 11:50:30 by kcolin ### ########.fr */
/* */
/* ************************************************************************** */
@ -52,7 +52,7 @@ int main(int argc, char **argv)
data.map = ft_calloc(sizeof(t_mapdata), 1);
if (!check_cubfile(argv[1], data.map))
return (ft_printf("Error: Wrong map file. Reason: %s\n",
data.map->error), 1);
data.map->error), free_map(data.map), 1);
data.mlx = mlx_init();
if (data.mlx == NULL)
return (ft_printf("Error: Failed to initalize mlx\n"),