aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/politics
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
parent4dca4f6538a3f82746ca4d8b3e66cdb6f9d0dff6 (diff)
Menu reqs: country index, flag type set, province set total populationmenu-reqs
Diffstat (limited to 'src/openvic-simulation/politics')
-rw-r--r--src/openvic-simulation/politics/Government.cpp4
-rw-r--r--src/openvic-simulation/politics/Government.hpp2
2 files changed, 3 insertions, 3 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;
diff --git a/src/openvic-simulation/politics/Government.hpp b/src/openvic-simulation/politics/Government.hpp
index 34a9194..f2a2318 100644
--- a/src/openvic-simulation/politics/Government.hpp
+++ b/src/openvic-simulation/politics/Government.hpp
@@ -29,7 +29,7 @@ namespace OpenVic {
struct GovernmentTypeManager {
private:
IdentifierRegistry<GovernmentType> IDENTIFIER_REGISTRY(government_type);
- std::vector<std::string> PROPERTY(flag_types);
+ string_set_t PROPERTY(flag_types);
public:
bool add_government_type(