From b323212e0edfc498389fa6432cdea6ba5bf558a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sun, 25 May 2025 15:04:44 +0200 Subject: [PATCH] TileSet: Prevent crash in conversion of invalid tiles from Godot 3.x Fixes #80898. --- scene/resources/2d/tile_set.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/resources/2d/tile_set.cpp b/scene/resources/2d/tile_set.cpp index 299b025018..900aa80369 100644 --- a/scene/resources/2d/tile_set.cpp +++ b/scene/resources/2d/tile_set.cpp @@ -3509,6 +3509,7 @@ void TileSet::_compatibility_conversion() { compatibility_tilemap_mapping_tile_modes[E.key] = COMPATIBILITY_TILE_MODE_ATLAS_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);