aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/politics/Government.cpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-04-19 20:28:30 +0200
committer hop311 <hop3114@gmail.com>2024-04-19 20:28:30 +0200
commit4284b73b82c02fb5d2d86fbfd966c03caab8dce4 (patch)
tree2e855a0b277f30ea645f88b5107e4253f24ce948 /src/openvic-simulation/politics/Government.cpp
parent4dca4f6538a3f82746ca4d8b3e66cdb6f9d0dff6 (diff)
Menu reqs: country index, flag type set, province set total populationmenu-reqs
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;