summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/MirLua/src/m_core.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirLua/src/m_core.cpp b/plugins/MirLua/src/m_core.cpp
index 1b4bc8d390..e0a19e0a6f 100644
--- a/plugins/MirLua/src/m_core.cpp
+++ b/plugins/MirLua/src/m_core.cpp
@@ -18,7 +18,7 @@ static int core_CreateHookableEvent(lua_State *L)
int HookEventObjParam(void *obj, WPARAM wParam, LPARAM lParam, LPARAM param)
{
- lua_State *L = lua_newthread((lua_State*)obj);
+ lua_State *L = lua_newthread(*(CMLua*)obj);
int ref = param;
lua_rawgeti(L, LUA_REGISTRYINDEX, ref);
@@ -97,7 +97,7 @@ static int core_DestroyHookableEvent(lua_State *L)
INT_PTR CreateServiceFunctionObjParam(void *obj, WPARAM wParam, LPARAM lParam, LPARAM param)
{
- lua_State *L = lua_newthread((lua_State*)obj);
+ lua_State *L = lua_newthread(*(CMLua*)obj);
int ref = param;
lua_rawgeti(L, LUA_REGISTRYINDEX, ref);