aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/singletons/MenuSingleton.cpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-06-18 21:30:42 +0200
committer GitHub <noreply@github.com>2024-06-18 21:30:42 +0200
commitace94963c36fb21288dbaf59b0191223adae6521 (patch)
tree3eb84f934534099aa89cfcbe67fd1098869a1ef0 /extension/src/openvic-extension/singletons/MenuSingleton.cpp
parent3dd525092e3a6027f20f0a1afdf8e871a9eecd34 (diff)
parent508a3ad82c9e20092ede373cdff7ec8d4ed9e881 (diff)
Merge pull request #233 from OpenVicProject/map-instance
Update to use Map 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 {};
}