From 8de1ee7b404949da4b342e0a6c9397943b33402c Mon Sep 17 00:00:00 2001 From: Christian Heinemann Date: Sat, 4 Jan 2025 17:32:40 +0100 Subject: [PATCH] bug for required addition connections = 0 fixed --- source/EngineGpuKernels/ConstructorProcessor.cuh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/EngineGpuKernels/ConstructorProcessor.cuh b/source/EngineGpuKernels/ConstructorProcessor.cuh index c13ea00fd..e70fca418 100644 --- a/source/EngineGpuKernels/ConstructorProcessor.cuh +++ b/source/EngineGpuKernels/ConstructorProcessor.cuh @@ -558,7 +558,7 @@ __inline__ __device__ Cell* ConstructorProcessor::continueConstruction( Math::rotateQuarterClockwise(posDelta); //get surrounding cells - if (numOtherCells > 0) { + if (numOtherCells > 0 && constructionData.numRequiredAdditionalConnections != 0) { //sort surrounding cells by distance from newCell bubbleSort(otherCells, numOtherCells, [&](auto const& cell1, auto const& cell2) {