aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/country/CountryInstance.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvic-simulation/country/CountryInstance.cpp')
-rw-r--r--src/openvic-simulation/country/CountryInstance.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/openvic-simulation/country/CountryInstance.cpp b/src/openvic-simulation/country/CountryInstance.cpp
index 4ecb902..5313af4 100644
--- a/src/openvic-simulation/country/CountryInstance.cpp
+++ b/src/openvic-simulation/country/CountryInstance.cpp
@@ -207,6 +207,10 @@ bool CountryInstance::clear_country_flag(std::string_view flag, bool warn) {
return true;
}
+bool CountryInstance::has_country_flag(std::string_view flag) const {
+ return country_flags.contains(flag);
+}
+
#define ADD_AND_REMOVE(item) \
bool CountryInstance::add_##item(std::remove_pointer_t<decltype(item##s)::value_type>& new_item) { \
if (!item##s.emplace(&new_item).second) { \