aboutsummaryrefslogtreecommitdiff
path: root/src/lua/jin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/jin.cpp')
-rw-r--r--src/lua/jin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lua/jin.cpp b/src/lua/jin.cpp
index f4fcb61..39291ac 100644
--- a/src/lua/jin.cpp
+++ b/src/lua/jin.cpp
@@ -67,6 +67,8 @@ namespace JinEngine
/* register jin module, keep it on the top of stack */
LUA_EXPORT int luaopen_jin(lua_State* L)
{
+ LuaState::set(L);
+
luax_globaltable(L, MODULE_NAME);
// Register values.