From 6f67a71e00fb319cd257f89f61af368958488664 Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Sat, 22 Sep 2012 14:52:08 +0400 Subject: Search for cur_season and cur_season_tick in devel/find-offsets. --- library/LuaTools.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'library') diff --git a/library/LuaTools.cpp b/library/LuaTools.cpp index a283d215..8fce0076 100644 --- a/library/LuaTools.cpp +++ b/library/LuaTools.cpp @@ -1814,7 +1814,9 @@ void DFHack::Lua::Core::onUpdate(color_ostream &out) lua_rawgetp(State, LUA_REGISTRYINDEX, &DFHACK_TIMEOUTS_TOKEN); run_timers(out, State, frame_timers, frame[1], ++frame_idx); - run_timers(out, State, tick_timers, frame[1], world->frame_counter); + + if (world) + run_timers(out, State, tick_timers, frame[1], world->frame_counter); } void DFHack::Lua::Core::Init(color_ostream &out) -- cgit v1.2.1