summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_options.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-06-16 07:22:55 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-06-16 07:22:55 +0000
commit7d0a69bb237e015049c2fe8d26d9ad1a0b24cc89 (patch)
treefc7020863a0fe76b49bfe83913fb208c71c315e6 /plugins/MirLua/src/m_options.cpp
parent4958934c982cada1dc6b4abe17a7e53fde114632 (diff)
MirLua: module returned back
git-svn-id: http://svn.miranda-ng.org/main/trunk@16987 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_options.cpp')
-rw-r--r--plugins/MirLua/src/m_options.cpp4
1 files changed, 2 insertions, 2 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);