diff --git a/to6trvr3fj.js b/to6trvr3fj.js index 294e4fb..6b4d7ee 100644 --- a/to6trvr3fj.js +++ b/to6trvr3fj.js @@ -197,13 +197,14 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) { GameLib.Event.AUDIO_ENDED, function(data) { - if (this.blastSubscription) { + if (data.audio.name === name) { - this.blastSubscription.remove(); - - this.blastSubscription = null; - - if (data.name === name) { + if (this.blastSubscription) { + + this.blastSubscription.remove(); + + this.blastSubscription = null; + GameLib.Event.Emit( GameLib.Event.PLAY_AUDIO, { @@ -211,8 +212,6 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) { } ); } - - } }.bind(this) );