mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Allowing params expr on normal expressions
This commit is contained in:
parent
754b24cbd8
commit
81e9438823
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue