From dbb5c036c43f6e2d266c10d78782cdddd589d382 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Sun, 30 May 2021 09:37:03 -0400 Subject: [PATCH] Disable loop with CompatibilityTileData when building with deprecated=no --- scene/resources/tile_set.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/resources/tile_set.cpp b/scene/resources/tile_set.cpp index 308f219a8dd..59c1a4e9158 100644 --- a/scene/resources/tile_set.cpp +++ b/scene/resources/tile_set.cpp @@ -1407,9 +1407,11 @@ TileSet::TileSet() { } TileSet::~TileSet() { +#ifndef DISABLE_DEPRECATED for (Map::Element *E = compatibility_data.front(); E; E = E->next()) { memdelete(E->get()); } +#endif // DISABLE_DEPRECATED while (!source_ids.is_empty()) { remove_source(source_ids[0]); }