diff --git a/CvGameCoreDLL_Expansion2/CvGame.cpp b/CvGameCoreDLL_Expansion2/CvGame.cpp index 242e6deb3e..bd9b7b8f0e 100644 --- a/CvGameCoreDLL_Expansion2/CvGame.cpp +++ b/CvGameCoreDLL_Expansion2/CvGame.cpp @@ -13813,13 +13813,13 @@ void CvGame::SpawnArchaeologySitesHistorically() } } - // sort the weight vector - aDigSiteWeights.StableSortItems(); - // Nowhere left to place a dig site! if (aDigSiteWeights.empty()) return; + // sort the weight vector + aDigSiteWeights.StableSortItems(); + // add the best dig site int iBestSite = aDigSiteWeights.GetElement(0); CvPlot* pPlot = theMap.plotByIndexUnchecked(iBestSite);