aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/modifier
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-10-27 12:56:46 +0100
committer hop311 <hop3114@gmail.com>2024-10-29 23:55:10 +0100
commit9a5468ceb4361059fcefae1a383a7c29b4f4e7be (patch)
tree4ff826fd008548cb79f71df83c422388a24de0da /src/openvic-simulation/modifier
parent309deb6a5b28c8e2b24e73d06f1418bb992b4cd7 (diff)
Rename `scope_t` enum to `scope_type_t`
Diffstat (limited to 'src/openvic-simulation/modifier')
-rw-r--r--src/openvic-simulation/modifier/ModifierManager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/openvic-simulation/modifier/ModifierManager.cpp b/src/openvic-simulation/modifier/ModifierManager.cpp
index a5ef8a8..9d6d3f8 100644
--- a/src/openvic-simulation/modifier/ModifierManager.cpp
+++ b/src/openvic-simulation/modifier/ModifierManager.cpp
@@ -630,9 +630,11 @@ bool ModifierManager::load_triggered_modifiers(const ast::NodeCPtr root) {
const bool ret = expect_dictionary_reserve_length(
triggered_modifiers,
[this](const std::string_view key, const ast::NodeCPtr value) -> bool {
+ using enum scope_type_t;
+
ModifierValue modifier_value {};
IconModifier::icon_t icon = 0;
- ConditionScript trigger { scope_t::COUNTRY, scope_t::COUNTRY, scope_t::NO_SCOPE };
+ ConditionScript trigger { COUNTRY, COUNTRY, NO_SCOPE };
bool ret = expect_dictionary_keys_and_default(
expect_base_country_modifier(modifier_value),