Fix rare Lua bug when updating a SPR_ constant

This commit is contained in:
LJ Sonic 2024-03-14 20:20:12 +01:00
parent 9ca5ce01f1
commit 8073b8b3f0

View file

@ -740,7 +740,7 @@ void LUA_UpdateSprName(const char *name, lua_Integer value)
if (!lua_isnil(gL, -1))
{
lua_pushstring(gL, name);
lua_pushstring(gL, fullname);
lua_pushinteger(gL, value);
lua_rawset(gL, LUA_GLOBALSINDEX);
}