mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Merge pull request #657 from neurosie/variable-fix
Fix variable deserializing
This commit is contained in:
commit
3beebdc7be
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