Fix false positive cache check error on MinGW/GCC 10 builds

Due to incorrect default operator== on structs with C arrays.

See: #709
See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94924
This commit is contained in:
Jonathan G Rennison
2024-07-03 00:25:16 +01:00
parent 5f34407ce1
commit 28c115fc33
3 changed files with 9 additions and 9 deletions

View File

@@ -101,7 +101,7 @@ CompanyManagerFace ConvertFromOldCompanyManagerFace(uint32_t face)
void AfterLoadCompanyStats()
{
/* Reset infrastructure statistics to zero. */
for (Company *c : Company::Iterate()) MemSetT(&c->infrastructure, 0);
for (Company *c : Company::Iterate()) c->infrastructure = {};
/* Collect airport count. */
for (const Station *st : Station::Iterate()) {