From 86e2b2338e4990fc9d134341306e95402c14740e Mon Sep 17 00:00:00 2001 From: neurosie Date: Tue, 8 Aug 2017 16:00:31 -0400 Subject: [PATCH] Fix variable deserializing --- src/serialization/sb3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serialization/sb3.js b/src/serialization/sb3.js index 1155fd2ce..35267a5e2 100644 --- a/src/serialization/sb3.js +++ b/src/serialization/sb3.js @@ -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,