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