summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
Diffstat (limited to 'objects.js')
-rw-r--r--objects.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/objects.js b/objects.js
index 2c51547..07b40cc 100644
--- a/objects.js
+++ b/objects.js
@@ -3717,7 +3717,7 @@ SpriteMorph.prototype.doScreenshot = function (data) {
ide = this.parentThatIsA(IDE_Morph),
screenshotName = data,
costume = new Costume(canvas, screenshotName);
- ide.currentSprite.addCostume(costume);
+ this.addCostume(costume);
};
// SpriteHighlightMorph /////////////////////////////////////////////////