mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed indexer issue with incorrect value type
This commit is contained in:
parent
808a4438d7
commit
58370d2c8c
1 changed files with 3 additions and 1 deletions
|
@ -15509,7 +15509,9 @@ BfTypedValue BfExprEvaluator::GetResult(bool clearResult, bool resolveGenericTyp
|
|||
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)
|
||||
failed = true;
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue