Fix off-by-one error in lib_setSfxInfo

This commit is contained in:
indev committed 2024-10-21 18:06:35 +03:00
1 parent 970251ced3
commit f149d058a1
1 file changed
+1 -1
+1 -1
View File
@@ -940,7 +940,7 @@ static int lib_setSfxInfo(lua_State *L)
if (lua_isnumber(L, 2))
{
int j = lua_tointeger(L, 2) - 1;
int j = lua_tointeger(L, 2);
// Read and Write enums were combined, need to do this switch now
switch (j)