mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-17 07:44:09 +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())
|
if (!resolvedType->IsValuelessType())
|
||||||
{
|
{
|
||||||
AssertErrorState();
|
AssertErrorState();
|
||||||
initValue = GetDefaultTypedValue(resolvedType);
|
initValue = GetDefaultTypedValue(resolvedType, true, BfDefaultValueKind_Undef);
|
||||||
localDef->mValue = initValue.mValue;
|
localDef->mValue = initValue.mValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue