aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/dataloader
diff options
context:
space:
mode:
author zaaarf <80046572+zaaarf@users.noreply.github.com>2023-12-27 00:12:17 +0100
committer GitHub <noreply@github.com>2023-12-27 00:12:17 +0100
commitcc808c115d8ec6c7b6e47db47f81395b4d52941f (patch)
tree1ac5bbac53d493682de60d1285c80b9be0ea40c0 /src/openvic-simulation/dataloader
parentbff91f78f9c5339079c10adfbf8232e5159c1a2d (diff)
parentdfa42bc38ebc34904b2325a88cdd16514044cfcb (diff)
Merge pull request #106 from OpenVicProject/rules
Added political/policy rules
Diffstat (limited to 'src/openvic-simulation/dataloader')
-rw-r--r--src/openvic-simulation/dataloader/Dataloader.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/openvic-simulation/dataloader/Dataloader.cpp b/src/openvic-simulation/dataloader/Dataloader.cpp
index 71cef82..fc4e64c 100644
--- a/src/openvic-simulation/dataloader/Dataloader.cpp
+++ b/src/openvic-simulation/dataloader/Dataloader.cpp
@@ -737,6 +737,10 @@ bool Dataloader::load_defines(GameManager& game_manager) const {
Logger::error("Failed to set up modifier effects!");
ret = false;
}
+ if (!game_manager.get_politics_manager().get_rule_manager().setup_rules()) {
+ Logger::error("Failed to set up rules!");
+ ret = false;
+ }
if (!game_manager.get_define_manager().load_defines_file(parse_lua_defines(lookup_file(defines_file)).get_file_node())) {
Logger::error("Failed to load defines!");
ret = false;