diff options
Diffstat (limited to 'plugins/MirLua/src/m_core.cpp')
| -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);
  | 
