From 4284b73b82c02fb5d2d86fbfd966c03caab8dce4 Mon Sep 17 00:00:00 2001 From: hop311 Date: Fri, 19 Apr 2024 19:28:30 +0100 Subject: Menu reqs: country index, flag type set, province set total population --- src/openvic-simulation/politics/Government.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/openvic-simulation/politics/Government.cpp') 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; -- cgit v1.2.3-56-ga3b1