mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed globals lookup inside extensions
This commit is contained in:
parent
7f56fecc6c
commit
9895e0a86d
1 changed files with 2 additions and 0 deletions
|
@ -3310,6 +3310,8 @@ 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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue