1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Fix DoPopulateType_CeCheckEnum

This commit is contained in:
Brian Fiete 2024-04-28 11:29:49 -04:00
parent 8225643598
commit aa4f9f7dfa
3 changed files with 41 additions and 7 deletions

View file

@ -3692,10 +3692,10 @@ void BfModule::DoPopulateType_FinishEnum(BfTypeInstance* typeInstance, bool unde
}
void BfModule::DoPopulateType_CeCheckEnum(BfTypeInstance* typeInstance, bool underlyingTypeDeferred)
{
{
if (!typeInstance->IsEnum())
return;
if ((!underlyingTypeDeferred) && (!typeInstance->IsPayloadEnum()))
if (!typeInstance->IsPayloadEnum())
return;
if ((typeInstance->mCeTypeInfo != NULL) && (typeInstance->mCeTypeInfo->mNext != NULL))
return;