浏览代码

Fix early exit not cleaning up kana and romaji

Thomas Dy 7 年之前
父节点
当前提交
9b86f73e50
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/game/typing.ts

+ 2 - 2
src/game/typing.ts

@@ -296,9 +296,9 @@ namespace game {
     exit(): void {}
     exit(): void {}
 
 
     transitionExit(): void {
     transitionExit(): void {
+      this.kanaController.destroy();
+      this.romajiController.destroy();
       if (this.context.track !== null) {
       if (this.context.track !== null) {
-        this.kanaController.destroy();
-        this.romajiController.destroy();
         this.progressController!.destroy();
         this.progressController!.destroy();
       }
       }
       this.scoreController.destroy();
       this.scoreController.destroy();