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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user