mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-25 13:51:43 +00:00
Fix Lua stack overflow in LUA_UpdateSprName
This commit is contained in:
parent
3bff9011d8
commit
d194bbeacd
1 changed files with 2 additions and 1 deletions
|
@ -590,11 +590,12 @@ void LUA_UpdateSprName(const char *name, lua_Integer value)
|
|||
|
||||
if (!lua_isnil(gL, -1))
|
||||
{
|
||||
lua_pop(gL, 1);
|
||||
lua_pushstring(gL, name);
|
||||
lua_pushinteger(gL, value);
|
||||
lua_rawset(gL, LUA_GLOBALSINDEX);
|
||||
}
|
||||
|
||||
lua_pop(gL, 1); // pop the rawget result
|
||||
}
|
||||
|
||||
int LUA_EnumLib(lua_State *L)
|
||||
|
|
Loading…
Reference in a new issue