This commit is contained in:
apple502j 2025-05-04 02:06:30 +00:00 committed by GitHub
commit 15093b126a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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