1
0
Fork 0
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:
Brian Fiete 2020-02-19 06:35:52 -08:00
parent 90e4cf8825
commit f041caaeb8
3 changed files with 62 additions and 38 deletions

View file

@ -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;
}