Fix #8919: Release builds with asserts enabled (#8925)

This commit is contained in:
Charles Pigott
2021-04-01 23:57:49 +01:00
committed by GitHub
parent 2a9825b8de
commit dd798d688b
8 changed files with 17 additions and 17 deletions

View File

@@ -107,7 +107,7 @@ Town::~Town()
DeleteWindowById(WC_TOWN_VIEW, this->index);
/* Check no industry is related to us. */
#ifndef NDEBUG
#ifdef WITH_ASSERT
for (const Industry *i : Industry::Iterate()) assert(i->town != this);
/* ... and no object is related to us. */