diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2021-05-30 09:37:03 -0400 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2021-05-30 09:37:03 -0400 |
commit | dbb5c036c43f6e2d266c10d78782cdddd589d382 (patch) | |
tree | 7815851afe9967d213f217ab4c3015ef6b574741 /scene | |
parent | da12086ceb21454aa505847ce4c3c1478c5a4ea6 (diff) |
Disable loop with CompatibilityTileData when building with deprecated=no
Diffstat (limited to 'scene')
-rw-r--r-- | scene/resources/tile_set.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/tile_set.cpp b/scene/resources/tile_set.cpp index 308f219a8d..59c1a4e915 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<int, CompatibilityTileData *>::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]); } |