1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +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: case BfUnaryOp_Params:
{ {
bool allowParams = (mBfEvalExprFlags & BfEvalExprFlags_AllowParamsExpr) != 0; bool allowParams = (mBfEvalExprFlags & BfEvalExprFlags_AllowParamsExpr) != 0;
if (mResultLocalVar == NULL)
allowParams = false;
if (allowParams) if (allowParams)
{ {
if (mResultLocalVar->mCompositeCount >= 0) // Delegate params if ((mResultLocalVar != NULL) && (mResultLocalVar->mCompositeCount >= 0)) // Delegate params
{ {
allowParams = true; allowParams = true;
} }