Skip to content

Commit 7162d2f

Browse files
committed
fix music crash
1 parent fcf987e commit 7162d2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sounds/botSoundSystem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ subscribeKey(miscUiState, 'gameLoaded', async () => {
7171
}
7272

7373
const musicStartCheck = async (force = false) => {
74-
if (!soundMap) return
74+
if (!soundMap || !bot) return
7575
// 20% chance to start music
7676
if (Math.random() > 0.2 && !force && !options.enableMusic) return
7777

0 commit comments

Comments
 (0)