summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_core.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-06-23 11:20:56 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-06-23 11:20:56 +0000
commitbd51e58378fab4f1ac9441f17830b0d9e7624a90 (patch)
tree0e383a5a3fdb25cddb3555bf37578211cab66764 /plugins/MirLua/src/m_core.cpp
parenta9a3ec00ede7662aa9a88fe35539547b0645c349 (diff)
MirLua: fixed UnhookEvent
git-svn-id: http://svn.miranda-ng.org/main/trunk@17021 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_core.cpp')
-rw-r--r--plugins/MirLua/src/m_core.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/MirLua/src/m_core.cpp b/plugins/MirLua/src/m_core.cpp
index 3e62d2f032..c4b03a6f80 100644
--- a/plugins/MirLua/src/m_core.cpp
+++ b/plugins/MirLua/src/m_core.cpp
@@ -97,7 +97,7 @@ static int core_UnhookEvent(lua_State *L)
int res = UnhookEvent(hEvent);
if (!res)
{
- HandleRefParam *param = (HandleRefParam*)CMLua::HookRefs.find(hEvent);
+ HandleRefParam *param = (HandleRefParam*)CMLua::HookRefs.find(&hEvent);
if (param != NULL)
{
luaL_unref(param->L, LUA_REGISTRYINDEX, param->ref);