1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

PopulateGlobalContainersList activeTypeDef fix

This commit is contained in:
Brian Fiete 2025-01-08 10:35:53 -08:00
parent bda65a8774
commit 85fcca9c76
2 changed files with 15 additions and 5 deletions

View file

@ -3950,11 +3950,7 @@ void BfModule::PopulateGlobalContainersList(const BfGlobalLookup& globalLookup)
BP_ZONE("PopulateGlobalContainersList");
BfTypeDef* userTypeDef = mContext->mCurTypeState->mCurTypeDef;
if ((userTypeDef == NULL) && (mCurMethodInstance != NULL))
userTypeDef = mCurMethodInstance->mMethodDef->mDeclaringType;
if (userTypeDef == NULL)
userTypeDef = mCurTypeInstance->mTypeDef;
BfTypeDef* userTypeDef = GetActiveTypeDef();
if (mContext->mCurTypeState->mGlobalContainerCurUserTypeDef != userTypeDef)
{