aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/map/ProvinceInstance.cpp
diff options
context:
space:
mode:
author wvpm <24685035+wvpm@users.noreply.github.com>2024-10-21 14:09:40 +0200
committer wvpm <24685035+wvpm@users.noreply.github.com>2024-10-26 16:49:08 +0200
commit3daebe5db14949f55be2c50220323138260dbaea (patch)
tree46039d0eb5d630cf000e94aed584aebaaa8f3f9b /src/openvic-simulation/map/ProvinceInstance.cpp
parentc88cf59997529cbca008f9a2b629822de9deaa2a (diff)
contextual modifier parsingcontextual_modifier_parsing
Diffstat (limited to 'src/openvic-simulation/map/ProvinceInstance.cpp')
-rw-r--r--src/openvic-simulation/map/ProvinceInstance.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/openvic-simulation/map/ProvinceInstance.cpp b/src/openvic-simulation/map/ProvinceInstance.cpp
index 236efd2..5bc798d 100644
--- a/src/openvic-simulation/map/ProvinceInstance.cpp
+++ b/src/openvic-simulation/map/ProvinceInstance.cpp
@@ -209,17 +209,17 @@ void ProvinceInstance::update_modifier_sum(Date today, StaticModifierCache const
// Add static modifiers
if (is_owner_core()) {
- modifier_sum.add_modifier_nullcheck(static_modifier_cache.get_core(), province_source);
+ modifier_sum.add_modifier(static_modifier_cache.get_core(), province_source);
}
if (province_definition.is_water()) {
- modifier_sum.add_modifier_nullcheck(static_modifier_cache.get_sea_zone(), province_source);
+ modifier_sum.add_modifier(static_modifier_cache.get_sea_zone(), province_source);
} else {
- modifier_sum.add_modifier_nullcheck(static_modifier_cache.get_land_province(), province_source);
+ modifier_sum.add_modifier(static_modifier_cache.get_land_province(), province_source);
if (province_definition.is_coastal()) {
- modifier_sum.add_modifier_nullcheck(static_modifier_cache.get_coastal(), province_source);
+ modifier_sum.add_modifier(static_modifier_cache.get_coastal(), province_source);
} else {
- modifier_sum.add_modifier_nullcheck(static_modifier_cache.get_non_coastal(), province_source);
+ modifier_sum.add_modifier(static_modifier_cache.get_non_coastal(), province_source);
}
// TODO - overseas, blockaded, no_adjacent_controlled, has_siege, occupied, nationalism, infrastructure