Disable loop with CompatibilityTileData when building with deprecated=no

This commit is contained in:
Aaron Franke 2021-05-30 09:37:03 -04:00
parent da12086ceb
commit dbb5c036c4
No known key found for this signature in database
GPG Key ID: 40A1750B977E56BF

View File

@ -1407,9 +1407,11 @@ TileSet::TileSet() {
} }
TileSet::~TileSet() { TileSet::~TileSet() {
#ifndef DISABLE_DEPRECATED
for (Map<int, CompatibilityTileData *>::Element *E = compatibility_data.front(); E; E = E->next()) { for (Map<int, CompatibilityTileData *>::Element *E = compatibility_data.front(); E; E = E->next()) {
memdelete(E->get()); memdelete(E->get());
} }
#endif // DISABLE_DEPRECATED
while (!source_ids.is_empty()) { while (!source_ids.is_empty()) {
remove_source(source_ids[0]); remove_source(source_ids[0]);
} }