From ef3003a1956f48b8c51810f335ceada612f107ee Mon Sep 17 00:00:00 2001 From: barbeque-squared Date: Tue, 31 Dec 2024 12:42:56 +0100 Subject: [PATCH] the array size for the lua functions has no relation whatsoever with IMaxPlayerCount, they currently just happen to be the same value --- src/lua/ULuaScreenSing.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua/ULuaScreenSing.pas b/src/lua/ULuaScreenSing.pas index f58c22d85..858e404d2 100644 --- a/src/lua/ULuaScreenSing.pas +++ b/src/lua/ULuaScreenSing.pas @@ -99,7 +99,7 @@ function ULuaScreenSing_SetSettings(L: Plua_State): Integer; cdecl; function ULuaScreenSing_GetSongLines(L: Plua_State): Integer; cdecl; const - ULuaScreenSing_Lib_f: array [0..UIni.IMaxPlayerCount-1] of lual_reg = ( + ULuaScreenSing_Lib_f: array [0..11] of lual_reg = ( (name:'GetScores';func:ULuaScreenSing_GetScores), (name:'GetRating';func:ULuaScreenSing_GetRating), (name:'GetBPM';func:ULuaScreenSing_GetBPM),