mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-14 14:30:34 -04:00
Merge 2c6299bb56
into f207757ef0
This commit is contained in:
commit
15093b126a
1 changed files with 3 additions and 1 deletions
|
@ -1096,7 +1096,9 @@ class RenderedTarget extends Target {
|
|||
* Dispose, destroying any run-time properties.
|
||||
*/
|
||||
dispose () {
|
||||
this.runtime.changeCloneCounter(-1);
|
||||
if (!this.isOriginal) {
|
||||
this.runtime.changeCloneCounter(-1);
|
||||
}
|
||||
this.runtime.stopForTarget(this);
|
||||
this.runtime.removeExecutable(this);
|
||||
this.sprite.removeClone(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue