From a36955f9e60d196d72288753993e621dd62829dd Mon Sep 17 00:00:00 2001 From: Cooliokid956 <68075390+Cooliokid956@users.noreply.github.com> Date: Fri, 27 Mar 2026 20:54:18 -0500 Subject: [PATCH] another autogen fix --- docs/lua/functions-6.md | 3 ++- src/pc/lua/smlua_functions_autogen.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/lua/functions-6.md b/docs/lua/functions-6.md index bcf2d3cea..3572776d2 100644 --- a/docs/lua/functions-6.md +++ b/docs/lua/functions-6.md @@ -5862,7 +5862,8 @@ Gets an `audio` stream's loop points in samples | audio | [ModAudio](structs.md#ModAudio) | ### Returns -- None +- `integer` +- `integer` ### C Prototype `void audio_stream_get_loop_points(struct ModAudio* audio, RET u64 *loopStart, RET u64 *loopEnd);` diff --git a/src/pc/lua/smlua_functions_autogen.c b/src/pc/lua/smlua_functions_autogen.c index dfd6d8b11..7c9c88269 100644 --- a/src/pc/lua/smlua_functions_autogen.c +++ b/src/pc/lua/smlua_functions_autogen.c @@ -30636,7 +30636,7 @@ int smlua_func_audio_stream_set_loop_points(lua_State* L) { if (!gSmLuaConvertSuccess) { LOG_LUA("Failed to convert parameter %u for function '%s'", 1, "audio_stream_set_loop_points"); return 0; } s64 loopStart = smlua_to_integer(L, 2); if (!gSmLuaConvertSuccess) { LOG_LUA("Failed to convert parameter %u for function '%s'", 2, "audio_stream_set_loop_points"); return 0; } - s64 loopEnd = (s64) NULL; + s64 loopEnd = (s64) 0; if (top >= 3) { loopEnd = smlua_to_integer(L, 3); if (!gSmLuaConvertSuccess) { LOG_LUA("Failed to convert parameter %u for function '%s'", 3, "audio_stream_set_loop_points"); return 0; }