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

Fixed some struct-init-detection code

This commit is contained in:
Brian Fiete 2020-04-11 07:32:40 -07:00
parent cc47080e96
commit f869bb3978
2 changed files with 61 additions and 1 deletions

View file

@ -3586,7 +3586,7 @@ BfTypedValue BfExprEvaluator::LookupField(BfAstNode* targetSrc, BfTypedValue tar
}
}
int fieldIdx = -1;
int fieldIdx = mResultLocalVarField - 1;
if (fieldIdx == -1)
{
mResultLocalVarField = minMergedDataIdx + 1;