From d7e57003f1a787f0dbecfd1253d9929caed67114 Mon Sep 17 00:00:00 2001 From: MysterD Date: Sun, 10 Apr 2022 09:56:56 -0700 Subject: [PATCH] Bump version --- src/pc/lua/utils/smlua_audio_utils.c | 5 +++++ src/pc/network/version.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pc/lua/utils/smlua_audio_utils.c b/src/pc/lua/utils/smlua_audio_utils.c index 95ad4888..228d6444 100644 --- a/src/pc/lua/utils/smlua_audio_utils.c +++ b/src/pc/lua/utils/smlua_audio_utils.c @@ -92,6 +92,11 @@ void smlua_audio_utils_replace_sequence(u8 sequenceId, u8 bankId, u8 defaultVolu return; } + if (bankId >= 64) { + LOG_LUA("Invalid bankId given to smlua_audio_utils_replace_sequence(): %d", bankId); + return; + } + char m64path[SYS_MAX_PATH] = { 0 }; if (snprintf(m64path, SYS_MAX_PATH-1, "sound/%s.m64", m64Name) < 0) { LOG_LUA("Could not find m64 at path: %s", m64path); diff --git a/src/pc/network/version.h b/src/pc/network/version.h index 648b2b02..465ad575 100644 --- a/src/pc/network/version.h +++ b/src/pc/network/version.h @@ -2,7 +2,7 @@ #define VERSION_H #define UNSTABLE_BRANCH -#define VERSION_NUMBER 23 +#define VERSION_NUMBER 24 #define MAX_VERSION_LENGTH 10 char* get_version(void);