diff options
author | BrickPi <49528459+BrickPi@users.noreply.github.com> | 2023-10-03 20:41:47 +0200 |
---|---|---|
committer | Joel Machens <ajmach6@gmail.com> | 2023-10-03 23:55:53 +0200 |
commit | 53b787831ff773e595f9fbe8523b8c382586bd7a (patch) | |
tree | ffccd3bd182befd16629279acca384d6bf5d6410 /src/openvic-simulation/politics/Government.cpp | |
parent | accb976f6d77cb02ed98e50c1bebd84134dc17cd (diff) |
Fix Extraneous Callback
Diffstat (limited to 'src/openvic-simulation/politics/Government.cpp')
-rw-r--r-- | src/openvic-simulation/politics/Government.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/openvic-simulation/politics/Government.cpp b/src/openvic-simulation/politics/Government.cpp index 1e3884c..76617a8 100644 --- a/src/openvic-simulation/politics/Government.cpp +++ b/src/openvic-simulation/politics/Government.cpp @@ -76,13 +76,9 @@ bool GovernmentTypeManager::load_government_types_file(IdeologyManager& ideology "election", "duration", "appoint_ruling_party", "flagType" }; if (reserved_keys.find(key) != reserved_keys.end()) return true; - return expect_assign( - [this, &ideology_manager, &ideologies](std::string_view ideology_key, ast::NodeCPtr value) -> bool { - if (ideology_manager.get_ideology_by_identifier(ideology_key) == nullptr) { return false; } - ideologies.push_back(std::string{ideology_key}); - return true; - } - )(value); + if (ideology_manager.get_ideology_by_identifier(key) == nullptr) return false; + ideologies.push_back(std::string{key}); + return true; } )(value); |