1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-17 23:56:05 +02:00

Fixed null check

This commit is contained in:
Brian Fiete 2021-11-06 07:26:37 -07:00
parent 699243e3e0
commit 6077a343ca

View file

@ -5991,7 +5991,7 @@ void BfModule::Visit(BfForEachStatement* forEachStmt)
} }
BfTypedValue target; BfTypedValue target;
if (forEachStmt->mCollectionExpression != NULL) if (collectionExpr != NULL)
target = CreateValueFromExpression(collectionExpr); target = CreateValueFromExpression(collectionExpr);
if (!target) if (!target)
{ {