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

mFieldDeclaration null check

This commit is contained in:
Brian Fiete 2021-03-24 06:31:32 -04:00
parent 532de216a1
commit f5a863d55a

View file

@ -3060,7 +3060,7 @@ void BfSystem::FinishCompositePartial(BfTypeDef* compositeTypeDef)
for (auto fieldDef : partialTypeDef->mFields) for (auto fieldDef : partialTypeDef->mFields)
{ {
if ((!fieldDef->mIsStatic) && (fieldDef->mFieldDeclaration->mInitializer != NULL)) if ((!fieldDef->mIsStatic) && (fieldDef->mFieldDeclaration != NULL) && (fieldDef->mFieldDeclaration->mInitializer != NULL))
hasInitializers = true; hasInitializers = true;
} }