mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-29 20:50:58 +00:00
Merge branch 'fix-setspriteinfo' into 'next'
Fix lib_setSpriteInfo indexes being off-by-one See merge request STJr/SRB2!854
This commit is contained in:
commit
3b9dd31faf
1 changed files with 0 additions and 3 deletions
|
@ -388,10 +388,7 @@ static int lib_setSpriteInfo(lua_State *L)
|
||||||
lua_Integer i = 0;
|
lua_Integer i = 0;
|
||||||
const char *str = NULL;
|
const char *str = NULL;
|
||||||
if (lua_isnumber(L, 2))
|
if (lua_isnumber(L, 2))
|
||||||
{
|
|
||||||
i = lua_tointeger(L, 2);
|
i = lua_tointeger(L, 2);
|
||||||
i++; // shift index in case of missing rotsprite support
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
str = luaL_checkstring(L, 2);
|
str = luaL_checkstring(L, 2);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue