Skip to content

Commit 12236a8

Browse files
committed
Ignore the "delete this clone" block in sprites that aren't clones
1 parent aec719a commit 12236a8

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
@@ -288,7 +288,7 @@ unsigned int ControlBlocks::deleteThisClone(VirtualMachine *vm)
288288
{
289289
Sprite *sprite = dynamic_cast<Sprite *>(vm->target());
290290

291-
if (sprite) {
291+
if (sprite && sprite->isClone()) {
292292
vm->engine()->stopTarget(sprite, nullptr);
293293
sprite->deleteClone();
294294
}

0 commit comments

Comments
 (0)