Merge pull request #49208 from aaronfranke/tileset-disable-dep-compat
Disable loop with CompatibilityTileData in TileSet when building with deprecated=no
This commit is contained in:
commit
144759303d
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue