1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Allowing params expr on normal expressions

This commit is contained in:
Brian Fiete 2020-06-22 05:56:37 -07:00
parent 754b24cbd8
commit 81e9438823

View file

@ -17856,11 +17856,9 @@ void BfExprEvaluator::PerformUnaryOperation_OnResult(BfExpression* unaryOpExpr,
case BfUnaryOp_Params:
{
bool allowParams = (mBfEvalExprFlags & BfEvalExprFlags_AllowParamsExpr) != 0;
if (mResultLocalVar == NULL)
allowParams = false;
if (allowParams)
{
if (mResultLocalVar->mCompositeCount >= 0) // Delegate params
if ((mResultLocalVar != NULL) && (mResultLocalVar->mCompositeCount >= 0)) // Delegate params
{
allowParams = true;
}