aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/military/Wargoal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvic-simulation/military/Wargoal.cpp')
-rw-r--r--src/openvic-simulation/military/Wargoal.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/openvic-simulation/military/Wargoal.cpp b/src/openvic-simulation/military/Wargoal.cpp
index 4045fa5..e81eaa0 100644
--- a/src/openvic-simulation/military/Wargoal.cpp
+++ b/src/openvic-simulation/military/Wargoal.cpp
@@ -69,7 +69,8 @@ bool WargoalTypeManager::add_wargoal_type(
}
bool WargoalTypeManager::load_wargoal_file(ast::NodeCPtr root) {
- bool ret = expect_dictionary(
+ bool ret = expect_dictionary_reserve_length(
+ wargoal_types,
[this](std::string_view identifier, ast::NodeCPtr value) -> bool {
if (identifier == "peace_order") {
return true;