From 8b76921724a22eda440f9a8d1fb52b9fa8cc0df0 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Tue, 2 Feb 2016 07:47:16 +0000 Subject: MirLua: minor fix git-svn-id: http://svn.miranda-ng.org/main/trunk@16209 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/mlua_script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/MirLua/src') 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); -- cgit v1.2.3