diff options
Diffstat (limited to 'src/openvic-simulation/politics')
-rw-r--r-- | src/openvic-simulation/politics/Government.cpp | 4 | ||||
-rw-r--r-- | src/openvic-simulation/politics/Government.hpp | 2 |
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( |