Fix invalid destruct on shortcut evaluation

This commit is contained in:
drmortalwombat 2024-09-20 19:22:12 +02:00
parent 84a0a9660f
commit e80f9812ef

View File

@ -3865,6 +3865,11 @@ Expression* Parser::AddFunctionCallRefReturned(Expression* exp)
} }
} }
} }
else if (exp->mType == EX_LOGICAL_AND || exp->mType == EX_LOGICAL_OR)
{
lexp = AddFunctionCallRefReturned(exp->mLeft);
exp->mRight = CleanupExpression(exp->mRight);
}
else else
{ {
if (exp->mLeft) if (exp->mLeft)