From 8825245319a027e049d258d4d75e2dad920ab926 Mon Sep 17 00:00:00 2001 From: KungCheops Date: Wed, 7 Aug 2024 18:25:22 +0200 Subject: [PATCH] Fix crash in CvPlot (#11206) --- CvGameCoreDLL_Expansion2/CvPlot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CvGameCoreDLL_Expansion2/CvPlot.cpp b/CvGameCoreDLL_Expansion2/CvPlot.cpp index 9f4feec720..9c21abaa30 100644 --- a/CvGameCoreDLL_Expansion2/CvPlot.cpp +++ b/CvGameCoreDLL_Expansion2/CvPlot.cpp @@ -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;