@@ -1239,7 +1239,7 @@ void CountryInstance::_update_budget() {
1239
1239
1240
1240
const fixed_point_t corruption_cost_multiplier = get_corruption_cost_multiplier ();
1241
1241
for (auto const & [pop_type, size] : pop_type_distribution) {
1242
- SharedPopTypeValues const & pop_type_values = shared_country_values.get_shared_pop_type_values ()[ pop_type] ;
1242
+ SharedPopTypeValues const & pop_type_values = shared_country_values.get_shared_pop_type_values (pop_type) ;
1243
1243
projected_administration_spending_unscaled_by_slider += size * calculate_administration_salary_base (pop_type_values, corruption_cost_multiplier);
1244
1244
projected_education_spending_unscaled_by_slider += size * calculate_education_salary_base (pop_type_values, corruption_cost_multiplier);
1245
1245
projected_military_spending_unscaled_by_slider += size * calculate_military_salary_base (pop_type_values, corruption_cost_multiplier);
@@ -2039,7 +2039,7 @@ void CountryInstance::request_salaries_and_welfare_and_import_subsidies(Pop& pop
2039
2039
PopType const & pop_type = *pop.get_type ();
2040
2040
const pop_size_t pop_size = pop.get_size ();
2041
2041
const fixed_point_t corruption_cost_multiplier = get_corruption_cost_multiplier ();
2042
- SharedPopTypeValues const & pop_type_values = shared_country_values.get_shared_pop_type_values ()[ pop_type] ;
2042
+ SharedPopTypeValues const & pop_type_values = shared_country_values.get_shared_pop_type_values (pop_type) ;
2043
2043
ModifierEffectCache const & modifier_effect_cache = shared_country_values.get_modifier_effect_cache ();
2044
2044
2045
2045
if (actual_administration_spending > fixed_point_t ::_0) {
@@ -2117,7 +2117,7 @@ fixed_point_t CountryInstance::calculate_minimum_wage_base(PopType const& pop_ty
2117
2117
2118
2118
return calculate_minimum_wage_base (
2119
2119
shared_country_values.get_modifier_effect_cache (),
2120
- shared_country_values.get_shared_pop_type_values ()[ pop_type]
2120
+ shared_country_values.get_shared_pop_type_values (pop_type)
2121
2121
);
2122
2122
}
2123
2123
0 commit comments