aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/singletons/MenuSingleton.cpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-06-07 00:22:24 +0200
committer hop311 <hop3114@gmail.com>2024-06-13 21:22:11 +0200
commit508a3ad82c9e20092ede373cdff7ec8d4ed9e881 (patch)
tree3eb84f934534099aa89cfcbe67fd1098869a1ef0 /extension/src/openvic-extension/singletons/MenuSingleton.cpp
parent3dd525092e3a6027f20f0a1afdf8e871a9eecd34 (diff)
Use separate MapDefinition and MapInstancemap-instance
Diffstat (limited to 'extension/src/openvic-extension/singletons/MenuSingleton.cpp')
-rw-r--r--extension/src/openvic-extension/singletons/MenuSingleton.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/extension/src/openvic-extension/singletons/MenuSingleton.cpp b/extension/src/openvic-extension/singletons/MenuSingleton.cpp
index b304b69..d382d75 100644
--- a/extension/src/openvic-extension/singletons/MenuSingleton.cpp
+++ b/extension/src/openvic-extension/singletons/MenuSingleton.cpp
@@ -188,7 +188,7 @@ Dictionary MenuSingleton::get_province_info_from_index(int32_t index) const {
static const StringName province_info_cores_key = "cores";
static const StringName province_info_buildings_key = "buildings";
- ProvinceInstance const* province = game_manager->get_map().get_province_instance_by_index(index);
+ ProvinceInstance const* province = game_manager->get_map_instance().get_province_instance_by_index(index);
if (province == nullptr) {
return {};
}