From e6bf99b7bcbcc053a2cddd12b5a77d91f36b0430 Mon Sep 17 00:00:00 2001 From: Leo Bernard Date: Mon, 6 Nov 2023 11:15:22 +0100 Subject: [PATCH] :bug: Fix `createScene` not working when no index is provided --- src/ns/song.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ns/song.ts b/src/ns/song.ts index 892897f..974effe 100644 --- a/src/ns/song.ts +++ b/src/ns/song.ts @@ -243,7 +243,7 @@ export class Song extends Namespace< } public async createScene(index?: number) { - return this.sendCommand("create_scene", [index]); + return this.sendCommand("create_scene", [index ?? -1]); } public async deleteReturnTrack(index: number) {