From 1747eef582c772be96ea398122ad490c1d4ae917 Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Sun, 31 Mar 2019 15:01:43 +0800 Subject: [PATCH] Fix stopSound bug --- libs/control.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/control.js b/libs/control.js index f348c10e..a3afd4fe 100644 --- a/libs/control.js +++ b/libs/control.js @@ -2203,8 +2203,8 @@ control.prototype.stopSound = function () { for (var i in core.musicStatus.playingSounds) { var source = core.musicStatus.playingSounds[i]; try { - if (source[i].stop) source[i].stop(); - else if (source[i].noteOff) source[i].noteOff(); + if (source.stop) source.stop(); + else if (source.noteOff) source.noteOff(); } catch (e) { main.log(e);