summaryrefslogtreecommitdiff
path: root/gui.js
diff options
context:
space:
mode:
Diffstat (limited to 'gui.js')
-rw-r--r--gui.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/gui.js b/gui.js
index 5bccd6d..6770465 100644
--- a/gui.js
+++ b/gui.js
@@ -5374,6 +5374,7 @@ SpriteIconMorph.prototype.copyStack = function (block) {
SpriteIconMorph.prototype.copyCostume = function (costume) {
var dup = costume.copy();
+ dup.name = this.object.newCostumeName(dup.name);
this.object.addCostume(dup);
this.object.wearCostume(dup);
};