diff --git a/src/virtual-machine.js b/src/virtual-machine.js index 0d2cab346..01cee0443 100644 --- a/src/virtual-machine.js +++ b/src/virtual-machine.js @@ -792,6 +792,7 @@ class VirtualMachine extends EventEmitter { */ updateSoundBuffer (soundIndex, newBuffer, soundEncoding) { const sound = this.editingTarget.sprite.sounds[soundIndex]; + if (sound && sound.broken) delete sound.broken; const id = sound ? sound.soundId : null; if (id && this.runtime && this.runtime.audioEngine) { this.editingTarget.sprite.soundBank.getSoundPlayer(id).buffer = newBuffer;