diff options
-rw-r--r-- | plugins/MirLua/src/m_options.cpp | 4 | ||||
-rw-r--r-- | plugins/MirLua/src/mlua_module_loader.cpp | 2 | ||||
-rw-r--r-- | plugins/MirLua/src/mlua_script.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/plugins/MirLua/src/m_options.cpp b/plugins/MirLua/src/m_options.cpp index 0ecce9c864..f41d4b6006 100644 --- a/plugins/MirLua/src/m_options.cpp +++ b/plugins/MirLua/src/m_options.cpp @@ -64,14 +64,14 @@ void MakeOptionDialogPage(lua_State *L, OPTIONSDIALOGPAGE &odp) odp.ptszTab = mir_utf8decodeT((char*)lua_tostring(L, -1));
lua_pop(L, 1);
- int onInitDialogRef = 0;
+ int onInitDialogRef = LUA_NOREF;
lua_getfield(L, -1, "OnInitDialog");
if (lua_isfunction(L, -1))
onInitDialogRef = luaL_ref(L, LUA_REGISTRYINDEX);
else
lua_pop(L, 1);
- int onApplyRef = 0;
+ int onApplyRef = LUA_NOREF;
lua_getfield(L, -1, "OnApply");
if (lua_isfunction(L, -1))
onApplyRef = luaL_ref(L, LUA_REGISTRYINDEX);
diff --git a/plugins/MirLua/src/mlua_module_loader.cpp b/plugins/MirLua/src/mlua_module_loader.cpp index 5d017e6a75..c7e64a5b0a 100644 --- a/plugins/MirLua/src/mlua_module_loader.cpp +++ b/plugins/MirLua/src/mlua_module_loader.cpp @@ -34,7 +34,7 @@ void CMLuaModuleLoader::LoadModules() Preload(MLUA_GENMENU, luaopen_m_genmenu);
Preload(MLUA_HOTKEYS, luaopen_m_hotkeys);
Preload(MLUA_MESSAGE, luaopen_m_message);
- //Preload(MLUA_OPTIONS, luaopen_m_options);
+ Preload(MLUA_OPTIONS, luaopen_m_options);
Preload(MLUA_PROTOCOLS, luaopen_m_protocols);
Preload(MLUA_SOUNDS, luaopen_m_sounds);
}
diff --git a/plugins/MirLua/src/mlua_script.cpp b/plugins/MirLua/src/mlua_script.cpp index 9676f36192..6c92c354d8 100644 --- a/plugins/MirLua/src/mlua_script.cpp +++ b/plugins/MirLua/src/mlua_script.cpp @@ -3,7 +3,7 @@ #define SCRIPT "Script"
CMLuaScript::CMLuaScript(lua_State *L, const TCHAR *path)
- : L(L), status(None), unloadRef(0)
+ : L(L), status(None), unloadRef(LUA_NOREF)
{
mir_tstrcpy(filePath, path);
|