Disable loop with CompatibilityTileData when building with deprecated=no
This commit is contained in:
parent
da12086ceb
commit
dbb5c036c4
@ -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
Block a user