diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-02-02 07:47:16 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-02-02 07:47:16 +0000 |
commit | 8b76921724a22eda440f9a8d1fb52b9fa8cc0df0 (patch) | |
tree | 87a01bdcdfdcdf976c4c040f8e64a7820811235c | |
parent | 01f468ca58ffcb373e67044d1e81fe500b8fcc7b (diff) |
MirLua: minor fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@16209 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/MirLua/src/mlua_script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/MirLua/src/mlua_script.cpp b/plugins/MirLua/src/mlua_script.cpp index 573900cd6d..2694ffe239 100644 --- a/plugins/MirLua/src/mlua_script.cpp +++ b/plugins/MirLua/src/mlua_script.cpp @@ -51,9 +51,9 @@ bool CMLuaScript::Load() }
lua_newtable(L);
+ lua_createtable(L, 0, 1);
lua_getglobal(L, "_G");
lua_setfield(L, -2, "__index");
- lua_pushvalue(L, -1);
lua_setmetatable(L, -2);
lua_setupvalue(L, -2, 1);
|