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

@@ -31,12 +31,12 @@ struct CompanyEconomyEntry {
};
struct CompanyInfrastructure {
uint32_t road[ROADTYPE_END]; ///< Count of company owned track bits for each road type.
uint32_t signal; ///< Count of company owned signals.
uint32_t rail[RAILTYPE_END]; ///< Count of company owned track bits for each rail type.
uint32_t water; ///< Count of company owned track bits for canals.
uint32_t station; ///< Count of company owned station tiles.
uint32_t airport; ///< Count of company owned airports.
std::array<uint32_t, ROADTYPE_END> road{}; ///< Count of company owned track bits for each road type.
uint32_t signal{}; ///< Count of company owned signals.
std::array<uint32_t, RAILTYPE_END> rail{}; ///< Count of company owned track bits for each rail type.
uint32_t water{}; ///< Count of company owned track bits for canals.
uint32_t station{}; ///< Count of company owned station tiles.
uint32_t airport{}; ///< Count of company owned airports.
/** Get total sum of all owned track bits. */
uint32_t GetRailTotal() const