1
0
Fork 0

Codefix: Ensure assertions are properly encapsulated within WITH_ASSERT directive

pull/12288/head
SamuXarick 2024-12-18 20:48:29 +00:00 committed by rubidium42
parent de908e08b2
commit 8e948af3bc
1 changed files with 1 additions and 1 deletions

View File

@ -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) {