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

Fixed value for failed ref local variable

This commit is contained in:
Brian Fiete 2022-06-06 13:04:35 -07:00
parent a083bda31b
commit 29832cb3bb

View file

@ -1851,7 +1851,7 @@ BfLocalVariable* BfModule::HandleVariableDeclaration(BfVariableDeclaration* varD
if (!resolvedType->IsValuelessType())
{
AssertErrorState();
initValue = GetDefaultTypedValue(resolvedType);
initValue = GetDefaultTypedValue(resolvedType, true, BfDefaultValueKind_Undef);
localDef->mValue = initValue.mValue;
}
}