From 6a348fc693e7ee9207f5ea881924d4f79f14b02a Mon Sep 17 00:00:00 2001 From: cha0s Date: Sun, 3 Nov 2019 10:40:52 -0600 Subject: [PATCH] fix: properly dispose sound tick --- packages/sound/sound.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sound/sound.js b/packages/sound/sound.js index c9c9ee1..63ab75f 100644 --- a/packages/sound/sound.js +++ b/packages/sound/sound.js @@ -50,7 +50,7 @@ export class Sound extends Resource { } destroy() { - clearInterval(instance.tickHandle); + clearInterval(this.tickHandle); if (this.sound) { this.sound.unload(); }