This commit is contained in:
Eric Rosenbaum 2016-10-13 11:35:52 -04:00
parent 80764f053d
commit e084a76485

View file

@ -65,8 +65,8 @@ function parseScratchObject (object, runtime, topLevel) {
} }
// Sounds from JSON // Sounds from JSON
if (object.hasOwnProperty('sounds')) { if (object.hasOwnProperty('sounds')) {
for (var i = 0; i < object.sounds.length; i++) { for (var s = 0; s < object.sounds.length; s++) {
var sound = object.sounds[i]; var sound = object.sounds[s];
sprite.sounds.push({ sprite.sounds.push({
format: sound.format, format: sound.format,
fileUrl: 'https://cdn.assets.scratch.mit.edu/internalapi/asset/' fileUrl: 'https://cdn.assets.scratch.mit.edu/internalapi/asset/'