mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed crash with failed indexer arg
This commit is contained in:
parent
78524657ba
commit
483eb41c6e
1 changed files with 3 additions and 1 deletions
|
@ -18134,7 +18134,9 @@ void BfExprEvaluator::PerformAssignment(BfAssignmentExpression* assignExpr, bool
|
|||
auto argValue = ResolveArgValue(mIndexerValues[paramIdx], wantType);
|
||||
if (refNode == NULL)
|
||||
refNode = mPropSrc;
|
||||
auto val = mModule->Cast(refNode, argValue, wantType);
|
||||
BfTypedValue val;
|
||||
if (argValue)
|
||||
val = mModule->Cast(refNode, argValue, wantType);
|
||||
if (!val)
|
||||
{
|
||||
mPropDef = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue