Fix crash with failed compatibility tiles

(cherry picked from commit 1a9739f591)
This commit is contained in:
kobewi 2023-06-28 15:11:10 +02:00 committed by Yuri Sizov
parent dd2907f9b7
commit 7a59ef60ee
1 changed files with 1 additions and 0 deletions

View File

@ -2590,6 +2590,7 @@ void TileSet::_compatibility_conversion() {
compatibility_tilemap_mapping_tile_modes[E.key] = COMPATIBILITY_TILE_MODE_SINGLE_TILE;
TileData *tile_data = atlas_source->get_tile_data(coords, alternative_tile);
ERR_CONTINUE(!tile_data);
tile_data->set_flip_h(flip_h);
tile_data->set_flip_v(flip_v);