summaryrefslogtreecommitdiff
path: root/src/cat/LuaScriptInterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cat/LuaScriptInterface.cpp')
-rw-r--r--src/cat/LuaScriptInterface.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cat/LuaScriptInterface.cpp b/src/cat/LuaScriptInterface.cpp
index 87496ec..98bd5ba 100644
--- a/src/cat/LuaScriptInterface.cpp
+++ b/src/cat/LuaScriptInterface.cpp
@@ -725,6 +725,14 @@ int LuaScriptInterface::elements_loadDefault(lua_State * l)
}
lua_pushnil(l);
lua_setglobal(l, "elements");
+ lua_pushnil(l);
+ lua_setglobal(l, "elem");
+
+ lua_getglobal(l, "package");
+ lua_getfield(l, -1, "loaded");
+ lua_pushnil(l);
+ lua_setfield(l, -2, "elements");
+
luacon_ci->initElementsAPI();
}