diff options
author | Hop311 <Hop3114@gmail.com> | 2023-09-23 13:22:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-23 13:22:00 +0200 |
commit | 4550acf29bd3ce4ff9b9d14788de21d96a5ef90a (patch) | |
tree | c39e52312e20fa9cdf8934c21d4016364bfb3e85 /src/openvic-simulation/pop/Religion.cpp | |
parent | d7022294d43a0b173de4f060e3260e986f03853d (diff) | |
parent | 6edb54dc3f308c1e9b2ccb7bed21facb129ab963 (diff) |
Merge pull request #24 from OpenVicProject/cleanup
Various fixes, refactors and general cleanup
Diffstat (limited to 'src/openvic-simulation/pop/Religion.cpp')
-rw-r--r-- | src/openvic-simulation/pop/Religion.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/openvic-simulation/pop/Religion.cpp b/src/openvic-simulation/pop/Religion.cpp index ec919fe..acdcad0 100644 --- a/src/openvic-simulation/pop/Religion.cpp +++ b/src/openvic-simulation/pop/Religion.cpp @@ -73,13 +73,7 @@ bool ReligionManager::load_religion_file(ast::NodeCPtr root) { bool ret = expect_dictionary_reserve_length( religion_groups, [this, &total_expected_religions](std::string_view key, ast::NodeCPtr value) -> bool { - bool ret = expect_list_and_length( - [&total_expected_religions](size_t size) -> size_t { - total_expected_religions += size; - return 0; - }, - success_callback - )(value); + bool ret = expect_length(add_variable_callback(total_expected_religions))(value); ret &= add_religion_group(key); return ret; } |