From cfa05003be67344fbc79c338c2ac82f0accd979d Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 22 Nov 2018 16:15:48 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9argc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lua/jin.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lua/jin.cpp') 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. -- cgit v1.1-26-g67d0