diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2021-04-01 23:57:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-01 23:57:49 +0100 |
commit | dd798d688b7e9ea6c7d4d01aea976dde5ec75f60 (patch) | |
tree | 35dbd6e5a3c3288d098cd961315bc57ae79ce524 /src/town_cmd.cpp | |
parent | 2a9825b8dec9d5bb3f43e36fcaae735f505e81de (diff) | |
download | openttd-dd798d688b7e9ea6c7d4d01aea976dde5ec75f60.tar.xz |
Fix #8919: Release builds with asserts enabled (#8925)
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 023063c1f..43f3523f8 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -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. */ |