From 1a9739f591a2cc7ee4ca8d4b90b5e20c6abaf390 Mon Sep 17 00:00:00 2001 From: kobewi Date: Wed, 28 Jun 2023 15:11:10 +0200 Subject: [PATCH] Fix crash with failed compatibility tiles --- scene/resources/tile_set.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/resources/tile_set.cpp b/scene/resources/tile_set.cpp index 96096afeb49..d74809a5127 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);