1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed invalid state rebuild

This commit is contained in:
Brian Fiete 2025-01-24 06:38:53 -08:00
parent ec34aa3d43
commit 1ee4c26445

View file

@ -5449,8 +5449,9 @@ BfTypedValue BfExprEvaluator::LoadField(BfAstNode* targetSrc, BfTypedValue targe
mModule->EmitObjectAccessCheck(target);
if (fieldInstance->mDataIdx < 0)
{
{
mModule->InternalError("LoadField field DataIdx<0 where InstSize>0");
mModule->DeferRebuildType(typeInstance);
return mModule->GetDefaultTypedValue(resolvedFieldType);
}