From 30821ad8deb42728fbba9de60dda31033f70aaac Mon Sep 17 00:00:00 2001 From: red-001 Date: Thu, 4 Jan 2018 07:21:12 +0000 Subject: [CSM] Don't load the IO library. (#6087) * [CSM] Don't load the IO library. * Rename the function to match the Lua API function name and add a missing `const` * Add a comment to explain some strange code and fix the other issues pointed out by shadowninja. --- src/script/cpp_api/s_async.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/script/cpp_api/s_async.cpp') diff --git a/src/script/cpp_api/s_async.cpp b/src/script/cpp_api/s_async.cpp index 93a200c22..5f1f9297e 100644 --- a/src/script/cpp_api/s_async.cpp +++ b/src/script/cpp_api/s_async.cpp @@ -198,6 +198,7 @@ void AsyncEngine::prepareEnvironment(lua_State* L, int top) AsyncWorkerThread::AsyncWorkerThread(AsyncEngine* jobDispatcher, const std::string &name) : Thread(name), + ScriptApiBase(ScriptingType::Async), jobDispatcher(jobDispatcher) { lua_State *L = getStack(); -- cgit v1.2.3