From 9a5468ceb4361059fcefae1a383a7c29b4f4e7be Mon Sep 17 00:00:00 2001 From: hop311 Date: Sun, 27 Oct 2024 11:56:46 +0000 Subject: Rename `scope_t` enum to `scope_type_t` --- src/openvic-simulation/map/Crime.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/openvic-simulation/map/Crime.cpp') diff --git a/src/openvic-simulation/map/Crime.cpp b/src/openvic-simulation/map/Crime.cpp index f52352c..ce0c623 100644 --- a/src/openvic-simulation/map/Crime.cpp +++ b/src/openvic-simulation/map/Crime.cpp @@ -30,9 +30,11 @@ bool CrimeManager::load_crime_modifiers(ModifierManager const& modifier_manager, const bool ret = expect_dictionary_reserve_length( crime_modifiers, [this, &modifier_manager](std::string_view key, ast::NodeCPtr value) -> bool { + using enum scope_type_t; + ModifierValue modifier_value; IconModifier::icon_t icon = 0; - ConditionScript trigger { scope_t::PROVINCE, scope_t::NO_SCOPE, scope_t::NO_SCOPE }; + ConditionScript trigger { PROVINCE, NO_SCOPE, NO_SCOPE }; bool default_active = false; bool ret = NodeTools::expect_dictionary_keys_and_default( -- cgit v1.2.3-56-ga3b1