mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed empty name crash
This commit is contained in:
parent
5d694cc3c4
commit
41b280f2df
1 changed files with 7 additions and 6 deletions
|
@ -1519,17 +1519,18 @@ void BfDefBuilder::Visit(BfTypeDeclaration* typeDeclaration)
|
|||
}
|
||||
if (typeDeclaration->mNameNode == NULL)
|
||||
{
|
||||
if (typeDeclaration->mStaticSpecifier != NULL)
|
||||
if (typeDeclaration->mAnonymousName != NULL)
|
||||
{
|
||||
mCurTypeDef->mName = mSystem->GetAtom(typeDeclaration->mAnonymousName);
|
||||
}
|
||||
|
||||
if (mCurTypeDef->mName == NULL)
|
||||
{
|
||||
// Global
|
||||
mCurTypeDef->mName = mSystem->mGlobalsAtom;
|
||||
mCurTypeDef->mName->Ref();
|
||||
BF_ASSERT(mCurTypeDef->mSystem != NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
mCurTypeDef->mName = mSystem->GetAtom(typeDeclaration->mAnonymousName);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue