diff options
Diffstat (limited to 'extension/src/openvic-extension/singletons/PopulationMenu.cpp')
-rw-r--r-- | extension/src/openvic-extension/singletons/PopulationMenu.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extension/src/openvic-extension/singletons/PopulationMenu.cpp b/extension/src/openvic-extension/singletons/PopulationMenu.cpp index 271068b..c96ef02 100644 --- a/extension/src/openvic-extension/singletons/PopulationMenu.cpp +++ b/extension/src/openvic-extension/singletons/PopulationMenu.cpp @@ -393,12 +393,12 @@ Error MenuSingleton::_population_menu_update_filtered_pops() { population_menu.distributions[0][&pop->get_type()] += pop->get_size(); population_menu.distributions[1][&pop->get_religion()] += pop->get_size(); population_menu.distributions[2] += - pop->get_ideologies() * static_cast<fixed_point_t>(static_cast<int32_t>(pop->get_size())); + pop->get_ideologies() * fixed_point_t::parse(pop->get_size()); population_menu.distributions[3][&pop->get_culture()] += pop->get_size(); population_menu.distributions[4] += - cast_map<HasIdentifierAndColour>(pop->get_issues() * static_cast<int32_t>(pop->get_size())); + cast_map<HasIdentifierAndColour>(pop->get_issues() * fixed_point_t::parse(pop->get_size())); population_menu.distributions[5] += - pop->get_votes() * static_cast<fixed_point_t>(static_cast<int32_t>(pop->get_size())); + pop->get_votes() * fixed_point_t::parse(pop->get_size()); } for (fixed_point_map_t<HasIdentifierAndColour const*>& distribution : population_menu.distributions) { |