summaryrefslogtreecommitdiff
path: root/plugins/MirLua
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2016-01-10 19:45:52 +0000
committerAlexander Lantsev <aunsane@gmail.com>2016-01-10 19:45:52 +0000
commitf87412da842a67246d574c8a4001baaef4b8d336 (patch)
tree8bb63a4f02b7efa4b198f56b38794a35ab7588d2 /plugins/MirLua
parent6d95761d050b0ada79566f42fed6e104614fe7ff (diff)
MirLua: fixed script loading
git-svn-id: http://svn.miranda-ng.org/main/trunk@16081 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua')
-rw-r--r--plugins/MirLua/src/mlua_script.cpp4
1 files changed, 3 insertions, 1 deletions
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;