diff options
author | aunsane <aunsane@gmail.com> | 2017-10-24 23:21:27 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2017-10-24 23:21:27 +0300 |
commit | 4eaa06c31f91c9a5de85d0745cf9f11908cebea9 (patch) | |
tree | 1349148097a198f71ee742b215ecf75d819b912b /plugins/MirLua/src | |
parent | a560d4c5ff208107d55f8b1223c3793ddaafae17 (diff) |
MirLua: add method wait into m_schedule
Diffstat (limited to 'plugins/MirLua/src')
-rw-r--r-- | plugins/MirLua/src/m_core.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/MirLua/src/m_core.cpp b/plugins/MirLua/src/m_core.cpp index 07c409a710..bf3b5233cf 100644 --- a/plugins/MirLua/src/m_core.cpp +++ b/plugins/MirLua/src/m_core.cpp @@ -342,6 +342,8 @@ void __cdecl ThreadFunc(void *p) static int core_ForkThread(lua_State *L)
{
+ luaL_checktype(L, 1, LUA_TFUNCTION);
+
core_ForkThreadParam *p = new core_ForkThreadParam();
p->L = lua_newthread(L);
|