Codechange: Use std::array for cached town zone radius.

This commit is contained in:
Peter Nelson
2024-04-16 15:46:56 +01:00
committed by Peter Nelson
parent d57bf84196
commit fe7bd3a266
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ struct TownCache {
uint32_t population; ///< Current population of people
TrackedViewportSign sign; ///< Location of name sign, UpdateVirtCoord updates this
PartOfSubsidy part_of_subsidy; ///< Is this town a source/destination of a subsidy?
uint32_t squared_town_zone_radius[HZB_END]; ///< UpdateTownRadius updates this given the house count
std::array<uint32_t, HZB_END> squared_town_zone_radius; ///< UpdateTownRadius updates this given the house count
BuildingCounts<uint16_t> building_counts; ///< The number of each type of building in the town
};