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:
parent
a083bda31b
commit
29832cb3bb
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue