mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed readonly issues, particularly with statics
This commit is contained in:
parent
90e4cf8825
commit
f041caaeb8
3 changed files with 62 additions and 38 deletions
|
@ -1022,9 +1022,10 @@ public:
|
|||
|
||||
BfMethodState* GetNonCaptureState()
|
||||
{
|
||||
//TODO: Why did this require mLocalMethod to not be null? That means lambda captures we're not crossed over
|
||||
auto checkMethodState = this;
|
||||
while ((checkMethodState->mPrevMethodState != NULL) && (checkMethodState->mClosureState != NULL) &&
|
||||
(checkMethodState->mClosureState->mCapturing) && (checkMethodState->mClosureState->mLocalMethod != NULL))
|
||||
(checkMethodState->mClosureState->mCapturing) /*&& (checkMethodState->mClosureState->mLocalMethod != NULL)*/)
|
||||
checkMethodState = checkMethodState->mPrevMethodState;
|
||||
return checkMethodState;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue