Fix potential crash in gpu particles source generator

This commit is contained in:
Wojtek Figat
2022-01-26 21:19:53 +01:00
parent 5dc304fcb4
commit 249a3332dc

View File

@@ -585,7 +585,7 @@ void ParticleEmitterGPUGenerator::ProcessGroupFunction(Box* box, Node* node, Val
break;
}
Box* functionCallBox = functionCallNode->TryGetBox(inputIndex);
if (functionCallBox->HasConnection())
if (functionCallBox && functionCallBox->HasConnection())
{
// Use provided input value from the function call
_graphStack.Pop();