Skip to content

Commit 55f8ca5

Browse files
Using forEachActiveSound method when destroying BaseSoundManager
1 parent 2572b01 commit 55f8ca5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

v3/src/sound/BaseSoundManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ var BaseSoundManager = new Class({
211211
this.game = null;
212212
this.events.destroy();
213213
this.events = null;
214-
this.sounds.forEach(function (sound) {
214+
this.forEachActiveSound(function (sound) {
215215
sound.destroy();
216216
});
217217
this.sounds = null;

0 commit comments

Comments
 (0)