Fix off-by-one error in lib_setSfxInfo
This commit is contained in:
1 parent
8a9f44ebaf
commit
25a5ac2a2d
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user