Skip to content

Commit 7c962ed

Browse files
committed
Fixed mixin params crash
1 parent 4d4133a commit 7c962ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

IDEHelper/Compiler/BfExprEvaluator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18322,8 +18322,8 @@ void BfExprEvaluator::InjectMixin(BfAstNode* targetSrc, BfTypedValue target, boo
1832218322

1832318323
exprEvaluator->FinishExpressionResult();
1832418324
arg.mTypedValue = mModule->LoadValue(arg.mTypedValue);
18325-
arg.mTypedValue = mModule->Cast(arg.mExpression, arg.mTypedValue, wantType);
18326-
18325+
if (arg.mTypedValue)
18326+
arg.mTypedValue = mModule->Cast(arg.mExpression, arg.mTypedValue, wantType);
1832718327
if (arg.mTypedValue)
1832818328
{
1832918329
auto argValue = mModule->LoadOrAggregateValue(arg.mTypedValue);

0 commit comments

Comments
 (0)