From 4888ecb9ec74b52c606e6dc7dbaf54119b553f85 Mon Sep 17 00:00:00 2001 From: Viraj Mahesh Date: Fri, 7 Mar 2014 15:05:50 -0800 Subject: Use this.addCostume instead of IDE --- objects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'objects.js') 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 ///////////////////////////////////////////////// -- cgit v1.3.1