aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/politics/Government.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvic-simulation/politics/Government.cpp')
-rw-r--r--src/openvic-simulation/politics/Government.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvic-simulation/politics/Government.cpp b/src/openvic-simulation/politics/Government.cpp
index 28f5d09..634db8e 100644
--- a/src/openvic-simulation/politics/Government.cpp
+++ b/src/openvic-simulation/politics/Government.cpp
@@ -38,8 +38,8 @@ bool GovernmentTypeManager::add_government_type(
});
/* flag_type can be empty here for default/non-ideological flag */
- if (ret && std::find(flag_types.begin(), flag_types.end(), flag_type) == flag_types.end()) {
- flag_types.emplace_back(flag_type);
+ if (ret) {
+ flag_types.emplace(flag_type);
}
return ret;