mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Improved issues with enums with code emissions
This commit is contained in:
parent
2a8a68e5d1
commit
35271626aa
3 changed files with 19 additions and 6 deletions
|
@ -3931,7 +3931,8 @@ void BfModule::DoPopulateType(BfType* resolvedTypeRef, BfPopulateType populateTy
|
|||
if ((typeInstance->mRebuildFlags & BfTypeRebuildFlag_UnderlyingTypeDeferred) != 0)
|
||||
underlyingTypeDeferred = true;
|
||||
}
|
||||
else if (typeInstance->IsEnum())
|
||||
|
||||
if ((typeInstance->IsEnum()) && (underlyingType == NULL) && (!underlyingTypeDeferred))
|
||||
{
|
||||
bool hasPayloads = false;
|
||||
for (auto fieldDef : typeDef->mFields)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue