Skip to content

Commit

Permalink
Fix build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursiveVision committed Jun 12, 2024
1 parent 45b75c4 commit 3c2b9d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CvGameCoreDLL_Expansion2/CvPlayerAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2034,7 +2034,7 @@ CvPlot* CvPlayerAI::FindBestMerchantTargetPlotForCash(CvUnit* pMerchant)

// --------------------------------------------------------------------------------
/// planner for AI spaceship production: returns the cities in which the currently available spaceship parts should be built in order to achieve SV as early as possible
const vector<CvCity*>& CvPlayerAI::GetBestCitiesForSpaceshipParts()
const vector<CvCity*> CvPlayerAI::GetBestCitiesForSpaceshipParts()
{
const vector<CvCity*> vpEmpty;

Expand Down Expand Up @@ -2262,7 +2262,7 @@ void CvPlayerAI::AI_doSpaceshipProduction()
return;

// calculate cities to build spaceship parts in
const vector<CvCity*>& vBestCitiesForSpaceshipParts = GetBestCitiesForSpaceshipParts();
const vector<CvCity*> vBestCitiesForSpaceshipParts = GetBestCitiesForSpaceshipParts();

// cancel spaceship part production in cities that are not considered the best cities (have to do this first to make the parts available)
CvString strOutBuf;
Expand Down
2 changes: 1 addition & 1 deletion CvGameCoreDLL_Expansion2/CvPlayerAI.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class CvPlayerAI : public CvPlayer
CvPlot* FindBestMerchantTargetPlotForPuppet(CvUnit* pMerchant);

//spaceship planning
const vector<CvCity*>& GetBestCitiesForSpaceshipParts();
const vector<CvCity*> GetBestCitiesForSpaceshipParts();
void AI_doSpaceshipProduction();

//For Great Diplomats
Expand Down

1 comment on commit 3c2b9d9

@azum4roll
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, nice catch. There used to be a member variable that was being returned, but I removed it at the end.

Please sign in to comment.