Merge branch 'lua-exploit-fix' into 'master'

Lua exploit fix

See merge request STJr/SRB2!259
This commit is contained in:
Monster Iestyn 2018-07-05 16:08:08 -04:00
commit 8c56e39c18
1 changed files with 3 additions and 1 deletions

View File

@ -77,7 +77,9 @@ void Got_Luacmd(UINT8 **cp, INT32 playernum)
deny:
//must be hacked/buggy client
lua_settop(gL, 0); // clear stack
if (gL) // check if Lua is actually turned on first, you dummmy -- Monster Iestyn 04/07/18
lua_settop(gL, 0); // clear stack
CONS_Alert(CONS_WARNING, M_GetText("Illegal lua command received from %s\n"), player_names[playernum]);
if (server)
{