mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-14 12:13:51 +02:00
Null check fix
This commit is contained in:
parent
a0b7f5d1da
commit
769572901e
1 changed files with 7 additions and 4 deletions
|
@ -6664,10 +6664,13 @@ void BfModule::DoTypeInstanceMethodProcessing(BfTypeInstance* typeInstance)
|
|||
|
||||
auto _CheckEntry = [&](BfTypeDef* typeDef)
|
||||
{
|
||||
auto parser = typeDef->mTypeDeclaration->GetParser();
|
||||
if (parser != NULL)
|
||||
if (mCompiler->mResolvePassData->GetSourceClassifier(parser) != NULL)
|
||||
isCurrentEntry = true;
|
||||
if (typeDef->mTypeDeclaration != NULL)
|
||||
{
|
||||
auto parser = typeDef->mTypeDeclaration->GetParser();
|
||||
if (parser != NULL)
|
||||
if (mCompiler->mResolvePassData->GetSourceClassifier(parser) != NULL)
|
||||
isCurrentEntry = true;
|
||||
}
|
||||
};
|
||||
|
||||
_CheckEntry(typeInstance->mTypeDef);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue