diff --git a/CvGameCoreDLL_Expansion2/CvBuilderTaskingAI.cpp b/CvGameCoreDLL_Expansion2/CvBuilderTaskingAI.cpp index 0addc273f9..acedee9405 100644 --- a/CvGameCoreDLL_Expansion2/CvBuilderTaskingAI.cpp +++ b/CvGameCoreDLL_Expansion2/CvBuilderTaskingAI.cpp @@ -3603,6 +3603,12 @@ int CvBuilderTaskingAI::GetResourceSpawnWorkableChance(CvPlot* pPlot, int& iTile aPossibleSpawnPlots.push_back(pAdjacentPlot); } + if (aPossibleSpawnPlots.empty()) + { + iTileClaimChance = 0; + return 0; + } + int iWorkableSpawnPlots = 0; int iNonWorkableSpawnPlots = 0; int iClaimTiles = 0;