mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Merge pull request #1362 from paulkaplan/fix-duplicate-sound
Fix duplicating sounds not working
This commit is contained in:
commit
13c6c4f9d4
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ class Sprite {
|
||||||
newSprite.sounds = this.sounds.map(sound => {
|
newSprite.sounds = this.sounds.map(sound => {
|
||||||
const newSound = Object.assign({}, sound);
|
const newSound = Object.assign({}, sound);
|
||||||
const soundAsset = this.runtime.storage.get(sound.assetId);
|
const soundAsset = this.runtime.storage.get(sound.assetId);
|
||||||
assetPromises.push(loadSoundFromAsset(newSound, soundAsset, this.runtime, this));
|
assetPromises.push(loadSoundFromAsset(newSound, soundAsset, this.runtime, newSprite));
|
||||||
return newSound;
|
return newSound;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue