summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2023-06-28 15:58:57 +0200
committerGitHub <noreply@github.com>2023-06-28 15:58:57 +0200
commitc83f912bcb33d441b90afe36bad38880acbe5f15 (patch)
treedceff234ed97745416e295485616cbaec58e5586
parent9e903e462caf3c215d3c1f6e771fa02928402b5f (diff)
parent1a9739f591a2cc7ee4ca8d4b90b5e20c6abaf390 (diff)
downloadredot-engine-c83f912bcb33d441b90afe36bad38880acbe5f15.tar.gz
Merge pull request #78796 from KoBeWi/vengeful_spirit_of_Godot3_tries_to_destroy_the_new_engine
Fix crash with failed compatibility tiles
-rw-r--r--scene/resources/tile_set.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/tile_set.cpp b/scene/resources/tile_set.cpp
index 96096afeb4..d74809a512 100644
--- a/scene/resources/tile_set.cpp
+++ b/scene/resources/tile_set.cpp
@@ -2609,6 +2609,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);