mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Missing 'this' local variable protection
This commit is contained in:
parent
893beb432f
commit
0738fa8ce9
1 changed files with 2 additions and 1 deletions
|
@ -17878,7 +17878,8 @@ void BfModule::EmitCtorBody(bool& skipBody)
|
|||
}
|
||||
|
||||
// Zero out memory for default ctor
|
||||
if ((methodDeclaration == NULL) && (mCurTypeInstance->IsStruct()) && (methodInstance->mChainType != BfMethodChainType_ChainMember))
|
||||
if ((methodDeclaration == NULL) && (mCurTypeInstance->IsStruct()) && (methodInstance->mChainType != BfMethodChainType_ChainMember) &&
|
||||
(!mCurMethodState->mLocals.IsEmpty()))
|
||||
{
|
||||
if (mCurTypeInstance->IsTypedPrimitive())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue