kopia lustrzana https://github.com/backface/turtlestitch
Removes JS error when clicking on "play sound until done" with no sound selected
rodzic
7fc78b053b
commit
d05b7becc0
|
@ -2226,7 +2226,7 @@ Process.prototype.doPlaySoundUntilDone = function (name) {
|
||||||
if (this.context.activeAudio === null) {
|
if (this.context.activeAudio === null) {
|
||||||
this.context.activeAudio = sprite.playSound(name);
|
this.context.activeAudio = sprite.playSound(name);
|
||||||
}
|
}
|
||||||
if (this.context.activeAudio.ended
|
if (name === null || this.context.activeAudio.ended
|
||||||
|| this.context.activeAudio.terminated) {
|
|| this.context.activeAudio.terminated) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue