Skip to content

Commit bb27299

Browse files
committed
Do not synchronize stopped scripts after delete this clone block
1 parent 478a8dd commit bb27299

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blocks/controlblocks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ CompilerValue *ControlBlocks::compileDeleteThisClone(Compiler *compiler)
180180
{
181181
CompilerValue *deleted = compiler->addTargetFunctionCall("control_delete_this_clone", Compiler::StaticType::Bool);
182182
compiler->beginIfStatement(deleted);
183-
compiler->createStop();
183+
compiler->createStopWithoutSync(); // sync happens before the function call
184184
compiler->endIf();
185185
return nullptr;
186186
}

0 commit comments

Comments
 (0)