Skip to content

Commit

Permalink
prevent crash in case of too large genomes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Oct 17, 2023
1 parent b527df6 commit bfb617d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/EngineGpuKernels/ObjectFactory.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ __inline__ __device__ void ObjectFactory::changeCellFromTO(DataTO const& dataTO,
cell->cellFunctionData.constructor.activationMode = cellTO.cellFunctionData.constructor.activationMode;
cell->cellFunctionData.constructor.constructionActivationTime = cellTO.cellFunctionData.constructor.constructionActivationTime;
createAuxiliaryData(
cellTO.cellFunctionData.constructor.genomeSize % MAX_GENOME_BYTES,
cellTO.cellFunctionData.constructor.genomeSize,
cellTO.cellFunctionData.constructor.genomeDataIndex,
dataTO.auxiliaryData,
cell->cellFunctionData.constructor.genomeSize,
Expand Down

0 comments on commit bfb617d

Please sign in to comment.