Skip to content

Commit 6258b8c

Browse files
author
Tim Mickel
committed
Merge pull request scratchfoundation#91 from ScottLogic/sprite-reporter-checking
Fix Sprite Checking
2 parents 20e90c6 + 2350abf commit 6258b8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/IO.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ IO.prototype.makeObjects = function() {
108108
}
109109
return newSprite;
110110
}
111-
if (obj.objName) { // sprite
111+
if (typeof(obj.objName) === "string") { // sprite
112112
newSprite = createSprite(obj);
113113
sprite = newSprite;
114114
} else {

0 commit comments

Comments
 (0)