We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb482c9 commit e7351beCopy full SHA for e7351be
scene/2d/tile_map.cpp
@@ -75,7 +75,7 @@ void TileMap::_set_tile_map_data_using_compatibility_format(int p_layer, TileMap
75
for (int i = 0; i < c; i += offset) {
76
const uint8_t *ptr = (const uint8_t *)&r[i];
77
uint8_t local[12];
78
- const int buffer_size = (format == TILE_MAP_DATA_FORMAT_2) ? 12 : 8;
+ const int buffer_size = (p_format >= TILE_MAP_DATA_FORMAT_2) ? 12 : 8;
79
for (int j = 0; j < buffer_size; j++) {
80
local[j] = ptr[j];
81
}
0 commit comments