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/scripting_server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/script/scripting_server.cpp') diff --git a/src/script/scripting_server.cpp b/src/script/scripting_server.cpp index 095216a74..1eee24c61 100644 --- a/src/script/scripting_server.cpp +++ b/src/script/scripting_server.cpp @@ -48,10 +48,10 @@ extern "C" { #include "lualib.h" } -ServerScripting::ServerScripting(Server* server) +ServerScripting::ServerScripting(Server* server): + ScriptApiBase(ScriptingType::Server) { setGameDef(server); - setType(ScriptingType::Server); // setEnv(env) is called by ScriptApiEnv::initializeEnvironment() // once the environment has been created -- cgit v1.2.3