diff options
author | wvpm <24685035+wvpm@users.noreply.github.com> | 2024-11-03 22:23:39 +0100 |
---|---|---|
committer | wvpm <24685035+wvpm@users.noreply.github.com> | 2024-11-03 22:39:01 +0100 |
commit | 4eba08af501560e9139a562c53fbbc8b694fb4cf (patch) | |
tree | e9553d2f4ed09abb920921006b976c7ef4baa46c /src/openvic-simulation/InstanceManager.cpp | |
parent | 19026ff6aee8748df4777ec044065d13460e806a (diff) |
ModifierEffectCache & location to fieldsto_fields
Diffstat (limited to 'src/openvic-simulation/InstanceManager.cpp')
-rw-r--r-- | src/openvic-simulation/InstanceManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/openvic-simulation/InstanceManager.cpp b/src/openvic-simulation/InstanceManager.cpp index 4f388b0..277b439 100644 --- a/src/openvic-simulation/InstanceManager.cpp +++ b/src/openvic-simulation/InstanceManager.cpp @@ -61,7 +61,7 @@ void InstanceManager::tick() { Logger::info("Tick: ", today); // Tick... - map_instance.map_tick(today, definition_manager.get_modifier_manager().get_modifier_effect_cache()); + map_instance.map_tick(today); set_gamestate_needs_update(); } @@ -75,6 +75,7 @@ bool InstanceManager::setup() { bool ret = good_instance_manager.setup(definition_manager.get_economy_manager().get_good_definition_manager()); ret &= map_instance.setup( definition_manager.get_economy_manager().get_building_type_manager(), + definition_manager.get_modifier_manager().get_modifier_effect_cache(), definition_manager.get_pop_manager().get_pop_types(), definition_manager.get_politics_manager().get_ideology_manager().get_ideologies() ); @@ -142,8 +143,7 @@ bool InstanceManager::load_bookmark(Bookmark const* new_bookmark) { update_modifier_sums(); map_instance.initialise_for_new_game( today, - definition_manager.get_define_manager(), - definition_manager.get_modifier_manager().get_modifier_effect_cache() + definition_manager.get_define_manager() ); } |