1
0
Fork 1
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:
David Cernat 2019-05-12 01:58:18 +03:00
parent 6322ae081d
commit 023ead937f

View file

@ -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