Skip to content

Commit

Permalink
Fix a bug overestimating City-State strength
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursiveVision committed Nov 25, 2023
1 parent 8bc2c9d commit d942651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

Expand Down

0 comments on commit d942651

Please sign in to comment.