diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-07-06 12:38:11 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-07-06 12:38:11 +0000 |
commit | 044f684c197b7dc71556b2c26415cdc694ba51a3 (patch) | |
tree | ea540f29fbde157f45a15fe1003738a818f22919 /plugins/MirLua/src/m_msg_buttonsbar.cpp | |
parent | e4d6b6be1f71fd5c8b02ef10d4c130fb5673b76e (diff) |
MirLua:
- fixed correct hooks/services cleanup on reload
- added functions OnScriptLoaded and OnScriptUnload to m
git-svn-id: http://svn.miranda-ng.org/main/trunk@14498 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_msg_buttonsbar.cpp')
-rw-r--r-- | plugins/MirLua/src/m_msg_buttonsbar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirLua/src/m_msg_buttonsbar.cpp b/plugins/MirLua/src/m_msg_buttonsbar.cpp index 1789c5bca1..d150d81d79 100644 --- a/plugins/MirLua/src/m_msg_buttonsbar.cpp +++ b/plugins/MirLua/src/m_msg_buttonsbar.cpp @@ -131,8 +131,8 @@ static int lua_OnMsgToolBarButtonPressed(lua_State *L) HANDLE res = ::HookEventObjParam(ME_MSG_BUTTONPRESSED, ButtonPressedHookEventObjParam, L, ref);
lua_pushlightuserdata(L, res);
- Hooks.insert(res);
- HookRefs.insert(new HandleRefParam(L, res, ref));
+ CMLua::Hooks.insert(res);
+ CMLua::HookRefs.insert(new HandleRefParam(L, res, ref));
return 1;
}
|