Fix variable deserializing

This commit is contained in:
neurosie 2017-08-08 16:00:31 -04:00
parent 21e273c6fe
commit 86e2b2338e

View file

@ -100,7 +100,7 @@ const parseScratchObject = function (object, runtime) {
const target = sprite.createClone();
// Load target properties from JSON.
if (object.hasOwnProperty('variables')) {
for (let j = 0; j < object.variables.length; j++) {
for (let j in object.variables) {
const variable = object.variables[j];
const newVariable = new Variable(
variable.id,