mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-10-01 17:10:50 -04:00
[Server] Fix stack overflows by preventing infinite growth in Lua stack
This commit is contained in:
parent
6322ae081d
commit
023ead937f
@ -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…
x
Reference in New Issue
Block a user