Skip to content

Commit

Permalink
Fix build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursiveVision committed Jul 21, 2024
1 parent 0c07068 commit 2884993
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29377,10 +29377,8 @@ void CvDiplomacyAI::DoPlayerDeclaredWarOnSomeone(PlayerTypes ePlayer, TeamTypes
{
if (ePlayer < 0 || ePlayer >= MAX_CIV_PLAYERS || GET_PLAYER(ePlayer).isBarbarian()) return;
if (eOtherTeam < 0 || eOtherTeam >= MAX_CIV_TEAMS || GET_TEAM(eOtherTeam).isBarbarian()) return;

PlayerTypes eMyPlayer = GetID();
bool bMajorAttackedMajor = false;

PlayerTypes eMyPlayer = GetID();
vector<PlayerTypes> vAttackedTeam = GET_TEAM(eOtherTeam).getPlayers();
for (size_t i=0; i<vAttackedTeam.size(); i++)
{
Expand Down

0 comments on commit 2884993

Please sign in to comment.