diff options
author | red-001 <red-001@outlook.ie> | 2018-01-04 07:21:12 +0000 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2018-01-04 08:21:12 +0100 |
commit | 30821ad8deb42728fbba9de60dda31033f70aaac (patch) | |
tree | 93e98b7699736fb98244b3bb586413bb1ed9d277 /src/script/cpp_api/s_async.cpp | |
parent | e7396a0c5060eccf3d4aea9b83647e1d02df308b (diff) | |
download | minetest-30821ad8deb42728fbba9de60dda31033f70aaac.tar.gz minetest-30821ad8deb42728fbba9de60dda31033f70aaac.tar.bz2 minetest-30821ad8deb42728fbba9de60dda31033f70aaac.zip |
[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.
Diffstat (limited to 'src/script/cpp_api/s_async.cpp')
-rw-r--r-- | src/script/cpp_api/s_async.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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(); |