Skip to content
Snippets Groups Projects

Fix lib_setSpriteInfo indexes being off-by-one

Merged Lactozilla requested to merge fix-setspriteinfo into next
1 file
+ 0
3
Compare changes
  • Side-by-side
  • Inline
+ 0
3
@@ -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