Codechange: use std::array.fill over memset
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
[pre-amble]
|
||||
const std::array<std::string, GAME_DIFFICULTY_NUM> _old_diff_settings{"max_no_competitors", "competitor_start_time", "number_towns", "industry_density", "max_loan", "initial_interest", "vehicle_costs", "competitor_speed", "competitor_intelligence", "vehicle_breakdowns", "subsidy_multiplier", "construction_cost", "terrain_type", "quantity_sea_lakes", "economy", "line_reverse_mode", "disasters", "town_council_tolerance"};
|
||||
|
||||
uint16_t _old_diff_custom[GAME_DIFFICULTY_NUM];
|
||||
std::array<uint16_t, GAME_DIFFICULTY_NUM> _old_diff_custom;
|
||||
uint8_t _old_diff_level; ///< Old difficulty level from old savegames
|
||||
|
||||
static void DifficultyNoiseChange(int32_t new_value);
|
||||
|
||||
Reference in New Issue
Block a user