Add some [[maybe_unused]] tags for when asserts are disabled

This commit is contained in:
Jonathan G Rennison
2024-01-02 15:11:03 +00:00
parent 9ea49d6680
commit 8751bd2ba7
3 changed files with 3 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ Tunnel::~Tunnel()
tunnel_tile_index_map.erase(this->tile_s);
}
bool have_erased = false;
[[maybe_unused]] bool have_erased = false;
const auto key = GetTunnelAxisHeightCacheKey(this);
for (auto it = tunnel_axis_height_index.lower_bound(key); it != tunnel_axis_height_index.end() && it->first == key; ++it) {
if (it->second == this) {