forked from mirror/OpenTTD
Codefix: Ensure assertions are properly encapsulated within WITH_ASSERT directive
This commit is contained in:
@@ -125,7 +125,6 @@ Town::~Town()
|
||||
for (const Object *o : Object::Iterate()) {
|
||||
assert(o->town != this);
|
||||
}
|
||||
#endif /* WITH_ASSERT */
|
||||
|
||||
/* Check no tile is related to us. */
|
||||
for (const auto tile : Map::Iterate()) {
|
||||
@@ -146,6 +145,7 @@ Town::~Town()
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif /* WITH_ASSERT */
|
||||
|
||||
/* Clear the persistent storage list. */
|
||||
for (auto &psa : this->psa_list) {
|
||||
|
Reference in New Issue
Block a user