summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/src/mlua.cpp')
-rw-r--r--plugins/MirLua/src/mlua.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/MirLua/src/mlua.cpp b/plugins/MirLua/src/mlua.cpp
index 5a17246a5f..de7690356e 100644
--- a/plugins/MirLua/src/mlua.cpp
+++ b/plugins/MirLua/src/mlua.cpp
@@ -1,8 +1,5 @@
#include "stdafx.h"
-//LIST<void> CMLua::Hooks(1, PtrKeySortT);
-//LIST<void> CMLua::Events(1, PtrKeySortT);
-//LIST<void> CMLua::Services(1, PtrKeySortT);
LIST<void> CMLua::HookRefs(1, HandleKeySortT);
LIST<void> CMLua::ServiceRefs(1, HandleKeySortT);
@@ -65,6 +62,7 @@ void CMLua::Unload()
delete script;
}
+ ::KillModuleScheduleTasks();
::KillModuleMBButtons();
::KillModuleTTBButton();
@@ -73,12 +71,8 @@ void CMLua::Unload()
::KillModuleHotkeys(hScriptsLangpack);
::KillObjectEventHooks(L);
::KillObjectServices(L);
- //KillModuleSubclassing
- //CMLua::KillLuaRefs();
-
- if (L)
- lua_close(L);
+ lua_close(L);
}
void CMLua::KillLuaRefs()