0
0
Fork 0
mirror of https://git.do.srb2.org/STJr/SRB2.git synced 2025-03-01 15:00:59 +00:00

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)) if (!lua_isnil(gL, -1))
{ {
lua_pushstring(gL, name); lua_pushstring(gL, fullname);
lua_pushinteger(gL, value); lua_pushinteger(gL, value);
lua_rawset(gL, LUA_GLOBALSINDEX); lua_rawset(gL, LUA_GLOBALSINDEX);
} }