mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-06 02:15:32 +00:00
[Server] Fix stack overflows by preventing infinite growth in Lua stack
This commit is contained in:
parent
6322ae081d
commit
023ead937f
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,8 @@ boost::any ScriptFunction::Call(const vector<boost::any> &args)
|
|||
default:
|
||||
throw runtime_error("Lua call: Unknown return type" + ret_type);
|
||||
}
|
||||
|
||||
lua_settop(fLua.lua, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue