From d29f94a4b1e60d6d779e2764a40e88fb10ff39e6 Mon Sep 17 00:00:00 2001 From: KJeff01 Date: Sun, 3 Mar 2024 14:20:46 -0600 Subject: [PATCH] Fix selNextSpecifiedBuilding() refs 67a9542f1bab3be05b19f072e82ff009eea3ce39 --- src/selection.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/selection.cpp b/src/selection.cpp index bf1124d92bc..e37d08c2611 100644 --- a/src/selection.cpp +++ b/src/selection.cpp @@ -474,6 +474,10 @@ void selNextSpecifiedBuilding(STRUCTURE_TYPE structType, bool jump) for (STRUCTURE *psCurr : apsStructLists[selectedPlayer]) { + if (psResult) + { + break; + } if (psCurr->pStructureType->type == structType && psCurr->status == SS_BUILT) { if (!psFirst)