From d94265167a32dee65ab57c0e24fda19f02c16cd5 Mon Sep 17 00:00:00 2001 From: RecursiveVision <66801010+RecursiveVision@users.noreply.github.com> Date: Sat, 25 Nov 2023 17:10:10 -0500 Subject: [PATCH] Fix a bug overestimating City-State strength --- CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp b/CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp index 66578b7467..1a256fb9ca 100644 --- a/CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp +++ b/CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp @@ -11249,7 +11249,7 @@ void CvDiplomacyAI::DoUpdatePlayerStrengthEstimates() else if (GET_PLAYER(ePlayer).isMinorCiv()) { vTheirDefensiveAllies.push_back(eEvaluate); - std::remove(vTheirDefensiveAllies.begin(), vTheirDefensiveAllies.end(), ePlayer); + vTheirDefensiveAllies.erase(std::remove(vTheirDefensiveAllies.begin(), vTheirDefensiveAllies.end(), ePlayer), vTheirDefensiveAllies.end()); } }