aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/InstanceManager.cpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-09-29 22:37:11 +0200
committer hop311 <hop3114@gmail.com>2024-10-05 22:48:42 +0200
commiteb77495ba874d474bbbbc950a65e8f496b13f285 (patch)
treefdbbc50f20d607cf66cff407415a7b89a14c78b8 /src/openvic-simulation/InstanceManager.cpp
parent6c23b7ff2e8bc733699ef9b29aee80719001acf2 (diff)
Calculate country and province resultant modifier sums
Diffstat (limited to 'src/openvic-simulation/InstanceManager.cpp')
-rw-r--r--src/openvic-simulation/InstanceManager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/openvic-simulation/InstanceManager.cpp b/src/openvic-simulation/InstanceManager.cpp
index c9ce24a..7f8a804 100644
--- a/src/openvic-simulation/InstanceManager.cpp
+++ b/src/openvic-simulation/InstanceManager.cpp
@@ -39,6 +39,11 @@ void InstanceManager::update_gamestate() {
Logger::info("Update: ", today);
+ map_instance.update_modifier_sums(today, definition_manager.get_modifier_manager().get_static_modifier_cache());
+ country_instance_manager.update_modifier_sums(
+ today, definition_manager.get_modifier_manager().get_static_modifier_cache()
+ );
+
// Update gamestate...
map_instance.update_gamestate(today, definition_manager.get_define_manager());
country_instance_manager.update_gamestate(