1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Fixed issue with non-static mixin usage inside a lambda

This commit is contained in:
Brian Fiete 2020-11-06 09:48:39 -08:00
parent a4c9b4f3c4
commit fb23269e33
2 changed files with 13 additions and 1 deletions

View file

@ -13032,7 +13032,8 @@ BfTypedValue BfModule::ReferenceStaticField(BfFieldInstance* fieldInstance)
BfTypedValue BfModule::GetThis()
{
auto useMethodState = mCurMethodState;
while ((useMethodState != NULL) && (useMethodState->mClosureState != NULL) && (useMethodState->mClosureState->mCapturing))
while ((useMethodState != NULL) && (useMethodState->mClosureState != NULL) && (useMethodState->mClosureState->mCapturing) &&
(useMethodState->mMixinState == NULL))
{
useMethodState = useMethodState->mPrevMethodState;
}