diff options
author | hop311 <hop3114@gmail.com> | 2023-12-26 23:40:50 +0100 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2023-12-26 23:40:50 +0100 |
commit | dfa42bc38ebc34904b2325a88cdd16514044cfcb (patch) | |
tree | 1ac5bbac53d493682de60d1285c80b9be0ea40c0 /src/openvic-simulation/dataloader/Dataloader.cpp | |
parent | bff91f78f9c5339079c10adfbf8232e5159c1a2d (diff) |
Added political/policy rules
Diffstat (limited to 'src/openvic-simulation/dataloader/Dataloader.cpp')
-rw-r--r-- | src/openvic-simulation/dataloader/Dataloader.cpp | 4 |
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; |