Merge pull request #78796 from KoBeWi/vengeful_spirit_of_Godot3_tries_to_destroy_the_new_engine

Fix crash with failed compatibility tiles
This commit is contained in:
Rémi Verschelde 2023-06-28 15:58:57 +02:00 committed by GitHub
commit c83f912bcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -2609,6 +2609,7 @@ void TileSet::_compatibility_conversion() {
compatibility_tilemap_mapping_tile_modes[E.key] = COMPATIBILITY_TILE_MODE_SINGLE_TILE; compatibility_tilemap_mapping_tile_modes[E.key] = COMPATIBILITY_TILE_MODE_SINGLE_TILE;
TileData *tile_data = atlas_source->get_tile_data(coords, alternative_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_h(flip_h);
tile_data->set_flip_v(flip_v); tile_data->set_flip_v(flip_v);