mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +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);
|
auto argValue = ResolveArgValue(mIndexerValues[paramIdx], wantType);
|
||||||
if (refNode == NULL)
|
if (refNode == NULL)
|
||||||
refNode = mPropSrc;
|
refNode = mPropSrc;
|
||||||
auto val = mModule->Cast(refNode, argValue, wantType);
|
BfTypedValue val;
|
||||||
|
if (argValue)
|
||||||
|
val = mModule->Cast(refNode, argValue, wantType);
|
||||||
if (!val)
|
if (!val)
|
||||||
failed = true;
|
failed = true;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue