From bca7827e1e0b58c35e7673627d992b6eb4a7031b Mon Sep 17 00:00:00 2001 From: nemo Date: Thu, 5 Jun 2025 14:42:49 +0200 Subject: [PATCH] fix bug size map --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index bfb6930..48a3106 100644 --- a/main.c +++ b/main.c @@ -193,7 +193,7 @@ void load_map(Map *map, Vec2i *map_size, int etage) { door_open = 0; *map_size = map_sizes[etage]; - memcpy(map, maps[etage], (map_size->x)*(map_size->y)*sizeof(char)*2 /*jsp pk il faut 2*/); + memcpy(map, maps[etage], MAP_SIZE_MAX*MAP_SIZE_MAX); for (int g=0; g