From bd51e58378fab4f1ac9441f17830b0d9e7624a90 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Thu, 23 Jun 2016 11:20:56 +0000 Subject: MirLua: fixed UnhookEvent git-svn-id: http://svn.miranda-ng.org/main/trunk@17021 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/m_core.cpp | 2 +- plugins/MirLua/src/mlua_script.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/MirLua') 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); diff --git a/plugins/MirLua/src/mlua_script.h b/plugins/MirLua/src/mlua_script.h index 2abb2d215a..c466e16c20 100644 --- a/plugins/MirLua/src/mlua_script.h +++ b/plugins/MirLua/src/mlua_script.h @@ -21,7 +21,6 @@ private: TCHAR filePath[MAX_PATH]; Status status; - static bool GetEnviroment(lua_State *L); public: CMLuaScript(lua_State *L, const TCHAR *path); @@ -29,6 +28,7 @@ public: static CMLuaScript* GetScriptFromEnviroment(lua_State *L); static int GetScriptIdFromEnviroment(lua_State *L); + static bool GetEnviroment(lua_State *L); int GetId() const; -- cgit v1.2.3