fix bug size map

This commit is contained in:
nemo 2025-06-05 14:42:49 +02:00
parent bbb523dc6a
commit bca7827e1e
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -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<MAX_GUARD_ETAGE; g++) {
Guard guard = guards[etage][g];