1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Anonymous id fix

This commit is contained in:
Brian Fiete 2025-01-04 14:56:12 -08:00
parent ea6d87c5c3
commit 613f9c743a

View file

@ -8229,9 +8229,8 @@ BfScopedInvocationTarget* BfReducer::CreateScopedInvocationTarget(BfAstNode*& ta
void BfReducer::InitAnonymousType(BfTypeDeclaration* typeDecl)
{
auto block = BfNodeDynCast<BfBlock>(typeDecl->mDefineNode);
int blockId = 0;
if (blockId != NULL)
int blockId = 0;
if (auto block = BfNodeDynCast<BfBlock>(typeDecl->mDefineNode))
{
blockId = block->mParserBlockId;
}