mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix lib_setSpriteInfo indexes being off-by-one
This commit is contained in:
parent
d2d8fe64f5
commit
4579c6f631
1 changed files with 0 additions and 3 deletions
|
|
@ -389,10 +389,7 @@ static int lib_setSpriteInfo(lua_State *L)
|
|||
lua_Integer i = 0;
|
||||
const char *str = NULL;
|
||||
if (lua_isnumber(L, 2))
|
||||
{
|
||||
i = lua_tointeger(L, 2);
|
||||
i++; // shift index in case of missing rotsprite support
|
||||
}
|
||||
else
|
||||
str = luaL_checkstring(L, 2);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue