mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Skip const field evaluation in unspecialized variations
This commit is contained in:
parent
e5c4321440
commit
94a5d7e5e9
1 changed files with 4 additions and 0 deletions
|
@ -4470,6 +4470,10 @@ BfTypedValue BfModule::GetFieldInitializerValue(BfFieldInstance* fieldInstance,
|
||||||
constResolver.Resolve(initializer);
|
constResolver.Resolve(initializer);
|
||||||
return GetDefaultTypedValue(fieldType);
|
return GetDefaultTypedValue(fieldType);
|
||||||
}
|
}
|
||||||
|
else if (mCurTypeInstance->IsUnspecializedTypeVariation())
|
||||||
|
{
|
||||||
|
return GetDefaultTypedValue(fieldType);
|
||||||
|
}
|
||||||
else if (fieldDef->mIsConst)
|
else if (fieldDef->mIsConst)
|
||||||
{
|
{
|
||||||
int ceExecuteId = -1;
|
int ceExecuteId = -1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue