fix: properly dispose sound tick

This commit is contained in:
cha0s 2019-11-03 10:40:52 -06:00
parent 8701cadbe8
commit 6a348fc693

View File

@ -50,7 +50,7 @@ export class Sound extends Resource {
}
destroy() {
clearInterval(instance.tickHandle);
clearInterval(this.tickHandle);
if (this.sound) {
this.sound.unload();
}