Fix off-by-one error in lib_setSfxInfo
This commit is contained in:
1 parent
970251ced3
commit
f149d058a1
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