From 35909d6e79d524f19f9b69dffd02fcf162be5093 Mon Sep 17 00:00:00 2001 From: hop311 Date: Sat, 19 Oct 2024 11:31:40 +0100 Subject: Switch to excluding given modifier effect targets rather than using a positive filter --- src/openvic-simulation/country/CountryInstance.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/openvic-simulation/country') diff --git a/src/openvic-simulation/country/CountryInstance.cpp b/src/openvic-simulation/country/CountryInstance.cpp index aceae11..417ca0a 100644 --- a/src/openvic-simulation/country/CountryInstance.cpp +++ b/src/openvic-simulation/country/CountryInstance.cpp @@ -1028,9 +1028,7 @@ void CountryInstance::update_modifier_sum(Date today, StaticModifierCache const& void CountryInstance::contribute_province_modifier_sum(ModifierSum const& province_modifier_sum) { using enum ModifierEffect::target_t; - static constexpr ModifierEffect::target_t NOT_PROVINCE = ALL_TARGETS & ~PROVINCE; - - modifier_sum.add_modifier_sum_filter_targets(province_modifier_sum, NOT_PROVINCE); + modifier_sum.add_modifier_sum_exclude_targets(province_modifier_sum, PROVINCE); } fixed_point_t CountryInstance::get_modifier_effect_value(ModifierEffect const& effect) const { -- cgit v1.2.3-56-ga3b1