diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-02-17 15:38:39 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-02-17 15:38:39 +0000 |
commit | 962a3d06bbd73aa7bb46eb8ae3e65c31a1902d5d (patch) | |
tree | fdb6bec16074d47e7be2aefea625500e94ff17c6 /plugins/MirLua/src/mlua_script.cpp | |
parent | 08d411ef426d5b630f0f4592be904ab9e1bd5e5a (diff) |
MirLua: m_variableas moved to separate lua library
git-svn-id: http://svn.miranda-ng.org/main/trunk@16292 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua_script.cpp')
-rw-r--r-- | plugins/MirLua/src/mlua_script.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirLua/src/mlua_script.cpp b/plugins/MirLua/src/mlua_script.cpp index 9e3769cabe..39b7bbf9e0 100644 --- a/plugins/MirLua/src/mlua_script.cpp +++ b/plugins/MirLua/src/mlua_script.cpp @@ -29,7 +29,7 @@ CMLuaScript::~CMLuaScript() bool CMLuaScript::GetScriptEnviroment(lua_State *L)
{
lua_Debug ar; - if (lua_getstack(L, 1, &ar) == 0 || lua_getinfo(L, "Sf", &ar) == 0 || lua_iscfunction(L, -1)) + if (lua_getstack(L, 1, &ar) == 0 || lua_getinfo(L, "f", &ar) == 0 || lua_iscfunction(L, -1)) { lua_pop(L, 1); return false;
@@ -105,7 +105,7 @@ bool CMLuaScript::Load() lua_getglobal(L, "_G");
lua_setfield(L, -2, "__index");
lua_setmetatable(L, -2);
- const char *env = lua_setupvalue(L, -2, 1);
+ lua_setupvalue(L, -2, 1);
if (luaM_pcall(L, 0, 1))
return false;
|