mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Fix variable deserializing
This commit is contained in:
parent
21e273c6fe
commit
86e2b2338e
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue