diff options
author | chai <chaifix@163.com> | 2018-07-28 00:50:12 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-07-28 00:50:12 +0800 |
commit | 92dab582ccac31be7fa410e7f4fb3789e88a0629 (patch) | |
tree | 008bbecc76a73aae38d77d1851f4230756356a33 /src/lua/core | |
parent | b855ebb91ad8d97617ec1aa418b4add84670a07d (diff) |
*update
Diffstat (limited to 'src/lua/core')
-rw-r--r-- | src/lua/core/luaopen_core.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua/core/luaopen_core.cpp b/src/lua/core/luaopen_core.cpp index c8df1b6..0e79ff5 100644 --- a/src/lua/core/luaopen_core.cpp +++ b/src/lua/core/luaopen_core.cpp @@ -9,7 +9,8 @@ namespace lua static int l_running(lua_State* L) { - bool running = Game::get()->running(); + static Game* game = Game::get(); + bool running = game->running(); luax_pushboolean(L, running); return 1; } |