mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed comptime reflection crash with static append fields
This commit is contained in:
parent
41a8ffb81e
commit
7244150dae
1 changed files with 1 additions and 1 deletions
|
@ -5754,7 +5754,7 @@ BfIRValue BfModule::CreateFieldData(BfFieldInstance* fieldInstance, int customAt
|
|||
{
|
||||
if (refVal.IsAddr())
|
||||
constValue = mBfIRBuilder->CreatePtrToInt(refVal.mValue, BfTypeCode_IntPtr);
|
||||
else if (fieldInstance->IsAppendedObject())
|
||||
else if ((fieldInstance->IsAppendedObject()) && (refVal))
|
||||
constValue = mBfIRBuilder->CreatePtrToInt(refVal.mValue, BfTypeCode_IntPtr);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue