Fix off-by-one error in lib_setSfxInfo

This commit is contained in:
indev authored and Alug committed 2024-10-21 17:39:42 +02:00
1 parent 8a9f44ebaf
commit 25a5ac2a2d
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)