Codefix: Ensure assertions are properly encapsulated within WITH_ASSERT directive

This commit is contained in:
SamuXarick
2024-12-18 20:48:29 +00:00
committed by rubidium42
parent de908e08b2
commit 8e948af3bc

View File

@@ -125,7 +125,6 @@ Town::~Town()
for (const Object *o : Object::Iterate()) { for (const Object *o : Object::Iterate()) {
assert(o->town != this); assert(o->town != this);
} }
#endif /* WITH_ASSERT */
/* Check no tile is related to us. */ /* Check no tile is related to us. */
for (const auto tile : Map::Iterate()) { for (const auto tile : Map::Iterate()) {
@@ -146,6 +145,7 @@ Town::~Town()
break; break;
} }
} }
#endif /* WITH_ASSERT */
/* Clear the persistent storage list. */ /* Clear the persistent storage list. */
for (auto &psa : this->psa_list) { for (auto &psa : this->psa_list) {