1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fixed missing argument error in mixin

This commit is contained in:
Brian Fiete 2021-01-04 12:28:56 -08:00
parent 1c7087ddd9
commit 156e3dd2fa

View file

@ -14298,6 +14298,8 @@ void BfExprEvaluator::InjectMixin(BfAstNode* targetSrc, BfTypedValue target, boo
}
else if (argExpr != NULL)
exprEvaluator->Evaluate(argExpr, false, false, true);
else
mModule->Fail("Missing argument", targetSrc);
auto argValue = exprEvaluator->mResult;
mModule->FixIntUnknown(argValue);