aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/country
diff options
context:
space:
mode:
author wvpm <24685035+wvpm@users.noreply.github.com>2024-10-28 15:11:51 +0100
committer wvpm <24685035+wvpm@users.noreply.github.com>2024-10-28 15:11:51 +0100
commit1e714f86e40a72a0452b6a5c9148b6034e17b5a6 (patch)
tree252f7f8067d6f5715ee6c48f99bf1add49f60dca /src/openvic-simulation/country
parent8d9ff3266439c6a94c35fdf0d8a0642a2cb34de3 (diff)
Provinces contribute modifiers to controller, not ownerprovinces_contribute_to_controller_not_owner
Diffstat (limited to 'src/openvic-simulation/country')
-rw-r--r--src/openvic-simulation/country/CountryInstance.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvic-simulation/country/CountryInstance.cpp b/src/openvic-simulation/country/CountryInstance.cpp
index 6e998e4..043494d 100644
--- a/src/openvic-simulation/country/CountryInstance.cpp
+++ b/src/openvic-simulation/country/CountryInstance.cpp
@@ -1011,7 +1011,7 @@ void CountryInstance::update_modifier_sum(Date today, StaticModifierCache const&
if constexpr (ProvinceInstance::ADD_OWNER_CONTRIBUTION) {
// Add province base modifiers (with local province modifier effects removed)
- for (ProvinceInstance const* province : owned_provinces) {
+ for (ProvinceInstance const* province : controlled_provinces) {
contribute_province_modifier_sum(province->get_modifier_sum());
}