[Server] Fix stack overflows by preventing infinite growth in Lua stack

pull/526/head
David Cernat 6 years ago
parent 6322ae081d
commit 023ead937f

@ -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…
Cancel
Save