diff options
-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);
|