aboutsummaryrefslogtreecommitdiff
path: root/src/lua/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/core')
-rw-r--r--src/lua/core/luaopen_core.cpp3
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;
}