mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-06-25 17:11:36 +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:
|
default:
|
||||||
throw runtime_error("Lua call: Unknown return type" + ret_type);
|
throw runtime_error("Lua call: Unknown return type" + ret_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lua_settop(fLua.lua, 0);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue