summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_core.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/src/m_core.cpp')
-rw-r--r--plugins/MirLua/src/m_core.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/MirLua/src/m_core.cpp b/plugins/MirLua/src/m_core.cpp
index 33214d061a..c57595ffef 100644
--- a/plugins/MirLua/src/m_core.cpp
+++ b/plugins/MirLua/src/m_core.cpp
@@ -37,7 +37,7 @@ int HookEventLuaStateParam(void *obj, WPARAM wParam, LPARAM lParam, LPARAM param
int HookEventEnvParam(void *obj, WPARAM wParam, LPARAM lParam, LPARAM param)
{
- CMLuaEnviroment *env = (CMLuaEnviroment*)obj;
+ CMLuaEnvironment *env = (CMLuaEnvironment*)obj;
int ref = param;
lua_rawgeti(env->L, LUA_REGISTRYINDEX, ref);
@@ -66,7 +66,7 @@ static int core_HookEvent(lua_State *L)
int ref = luaL_ref(L, LUA_REGISTRYINDEX);
HANDLE res = nullptr;
- CMLuaEnviroment *env = CMLuaEnviroment::GetEnviroment(L);
+ CMLuaEnvironment *env = CMLuaEnvironment::GetEnvironment(L);
if (env)
res = HookEventObjParam(name, HookEventEnvParam, env, ref);
else
@@ -95,7 +95,7 @@ static int core_HookTemporaryEvent(lua_State *L)
int ref = luaL_ref(L, LUA_REGISTRYINDEX);
HANDLE res = nullptr;
- CMLuaEnviroment *env = CMLuaEnviroment::GetEnviroment(L);
+ CMLuaEnvironment *env = CMLuaEnvironment::GetEnvironment(L);
if (env)
res = HookEventObjParam(name, HookEventEnvParam, env, ref);
else
@@ -171,7 +171,7 @@ INT_PTR CreateServiceFunctionLuaStateParam(void *obj, WPARAM wParam, LPARAM lPar
INT_PTR CreateServiceFunctionEnvParam(void *obj, WPARAM wParam, LPARAM lParam, LPARAM param)
{
- CMLuaEnviroment *env = (CMLuaEnviroment*)obj;
+ CMLuaEnvironment *env = (CMLuaEnvironment*)obj;
int ref = param;
lua_rawgeti(env->L, LUA_REGISTRYINDEX, ref);
@@ -195,7 +195,7 @@ static int core_CreateServiceFunction(lua_State *L)
int ref = luaL_ref(L, LUA_REGISTRYINDEX);
HANDLE res = nullptr;
- CMLuaEnviroment *env = CMLuaEnviroment::GetEnviroment(L);
+ CMLuaEnvironment *env = CMLuaEnvironment::GetEnvironment(L);
if (env)
res = CreateServiceFunctionObjParam(name, CreateServiceFunctionEnvParam, env, ref);
else