1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +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

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