aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/singletons/MenuSingleton.cpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-06-15 12:45:48 +0200
committer hop311 <hop3114@gmail.com>2024-07-04 10:45:35 +0200
commit99a85d03de5297f2c7c29aedfc83e4e37cbc795b (patch)
tree2933b65a98ef0a4b32c4bd848ecdad574bc1cfde /extension/src/openvic-extension/singletons/MenuSingleton.cpp
parentdb246d901d1ccd39b0ed3fc024f28ad7b6b4848b (diff)
Use CountryDefinition and CountryInstancecountry-definition
Diffstat (limited to 'extension/src/openvic-extension/singletons/MenuSingleton.cpp')
-rw-r--r--extension/src/openvic-extension/singletons/MenuSingleton.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/extension/src/openvic-extension/singletons/MenuSingleton.cpp b/extension/src/openvic-extension/singletons/MenuSingleton.cpp
index 79998d7..b4baf40 100644
--- a/extension/src/openvic-extension/singletons/MenuSingleton.cpp
+++ b/extension/src/openvic-extension/singletons/MenuSingleton.cpp
@@ -207,7 +207,7 @@ Dictionary MenuSingleton::get_province_info_from_index(int32_t index) const {
ret[province_info_life_rating_key] = province->get_life_rating();
- Country const* controller = province->get_controller();
+ CountryDefinition const* controller = province->get_controller();
if (controller != nullptr) {
ret[province_info_controller_key] = std_view_to_godot_string(controller->get_identifier());
}
@@ -241,7 +241,7 @@ Dictionary MenuSingleton::get_province_info_from_index(int32_t index) const {
ret[province_info_pop_cultures_key] = GFXPieChartTexture::distribution_to_slices_array(cultures);
}
- std::vector<Country const*> const& cores = province->get_cores();
+ std::vector<CountryDefinition const*> const& cores = province->get_cores();
if (!cores.empty()) {
PackedStringArray cores_array;
if (cores_array.resize(cores.size()) == OK) {