Drew Petersen 5 年之前
父節點
當前提交
8ecf0c5895
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Audio/soundTrack.ts

+ 1 - 1
src/Audio/soundTrack.ts

@@ -51,7 +51,7 @@ export class SoundTrack {
         this.soundCollection = new Array();
         this._options = options;
 
-        if (!this.options.mainTrack && this._scene.soundTracks) {
+        if (!this._options.mainTrack && this._scene.soundTracks) {
             this._scene.soundTracks.push(this);
             this.id = this._scene.soundTracks.length - 1;
         }