From f87412da842a67246d574c8a4001baaef4b8d336 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sun, 10 Jan 2016 19:45:52 +0000 Subject: MirLua: fixed script loading git-svn-id: http://svn.miranda-ng.org/main/trunk@16081 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/mlua_script.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/MirLua/src/mlua_script.cpp') diff --git a/plugins/MirLua/src/mlua_script.cpp b/plugins/MirLua/src/mlua_script.cpp index ae44fc4e6e..27f972aaf4 100644 --- a/plugins/MirLua/src/mlua_script.cpp +++ b/plugins/MirLua/src/mlua_script.cpp @@ -62,8 +62,10 @@ bool CMLuaScript::Load() lua_pop(L, 1); lua_pushvalue(L, -2); lua_setfield(L, -2, moduleName); + lua_pop(L, 1); } - lua_remove(L, -2); + else + lua_remove(L, -2); if (!lua_istable(L, -1)) return true; -- cgit v1.2.3