mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Mixin 'this' fix
This commit is contained in:
parent
b3e225b360
commit
bd6e21073e
1 changed files with 2 additions and 3 deletions
|
@ -13032,8 +13032,7 @@ BfTypedValue BfModule::ReferenceStaticField(BfFieldInstance* fieldInstance)
|
|||
BfTypedValue BfModule::GetThis()
|
||||
{
|
||||
auto useMethodState = mCurMethodState;
|
||||
while ((useMethodState != NULL) && (useMethodState->mClosureState != NULL) && (useMethodState->mClosureState->mCapturing) &&
|
||||
(useMethodState->mMixinState == NULL))
|
||||
while ((useMethodState != NULL) && (useMethodState->mClosureState != NULL) && (useMethodState->mClosureState->mCapturing))
|
||||
{
|
||||
useMethodState = useMethodState->mPrevMethodState;
|
||||
}
|
||||
|
@ -13089,7 +13088,7 @@ BfTypedValue BfModule::GetThis()
|
|||
|
||||
// Check mixin state for 'this'
|
||||
{
|
||||
auto checkMethodState = useMethodState;
|
||||
auto checkMethodState = mCurMethodState;
|
||||
while (checkMethodState != NULL)
|
||||
{
|
||||
if (checkMethodState->mMixinState != NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue