From 99a85d03de5297f2c7c29aedfc83e4e37cbc795b Mon Sep 17 00:00:00 2001 From: hop311 Date: Sat, 15 Jun 2024 11:45:48 +0100 Subject: Use CountryDefinition and CountryInstance --- extension/src/openvic-extension/singletons/PopulationMenu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extension/src/openvic-extension/singletons/PopulationMenu.cpp') diff --git a/extension/src/openvic-extension/singletons/PopulationMenu.cpp b/extension/src/openvic-extension/singletons/PopulationMenu.cpp index 1804539..1237e86 100644 --- a/extension/src/openvic-extension/singletons/PopulationMenu.cpp +++ b/extension/src/openvic-extension/singletons/PopulationMenu.cpp @@ -29,9 +29,9 @@ bool MenuSingleton::_population_menu_update_provinces() { MapInstance const& map_instance = instance_manager->get_map_instance(); ERR_FAIL_COND_V(!map_instance.province_instances_are_locked(), false); - for (Country const* country : { + for (CountryDefinition const* country : { // Example country - game_singleton->get_definition_manager().get_country_manager().get_country_by_identifier("ENG") + game_singleton->get_definition_manager().get_country_definition_manager().get_country_definition_by_identifier("ENG") }) { ERR_CONTINUE(country == nullptr); -- cgit v1.2.3-56-ga3b1