diff options
Diffstat (limited to 'plugins/MirLua/src')
-rw-r--r-- | plugins/MirLua/src/mlua_script.cpp | 4 |
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;
|