Skip to content

Commit

Permalink
Fix crash in CvPlot (#11206)
Browse files Browse the repository at this point in the history
  • Loading branch information
KungCheops authored Aug 7, 2024
1 parent 869e65d commit 8825245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CvGameCoreDLL_Expansion2/CvPlot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15737,7 +15737,7 @@ int CvPlot::GetDefenseBuildValue(PlayerTypes eOwner, BuildTypes eBuild, Improvem
{
for (int iI = RING_PLOTS[iRingID - 1]; iI < RING_PLOTS[iRingID]; iI++)
{
CvPlot* pAdjacentPlot = plotDirection(getX(), getY(), ((DirectionTypes)iI));
CvPlot* pAdjacentPlot = iterateRingPlots(getX(), getY(), iI);

if (pAdjacentPlot == NULL)
continue;
Expand Down

0 comments on commit 8825245

Please sign in to comment.