diff options
Diffstat (limited to 'plugins/MirLua')
-rw-r--r-- | plugins/MirLua/src/m_core.cpp | 2 | ||||
-rw-r--r-- | plugins/MirLua/src/mlua_script.h | 2 |
2 files changed, 2 insertions, 2 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);
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;
|