diff options
| author | Alexander Gavrilov | 2012-09-22 14:52:08 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-09-22 14:52:08 +0400 |
| commit | 6f67a71e00fb319cd257f89f61af368958488664 (patch) | |
| tree | 0791ac91fa59c4d69b1501c151ccee761fd6f072 /library | |
| parent | 038d62367eea44ba625989b8cd4c1380ba544607 (diff) | |
| download | dfhack-6f67a71e00fb319cd257f89f61af368958488664.tar.gz dfhack-6f67a71e00fb319cd257f89f61af368958488664.tar.bz2 dfhack-6f67a71e00fb319cd257f89f61af368958488664.tar.xz | |
Search for cur_season and cur_season_tick in devel/find-offsets.
Diffstat (limited to 'library')
| -rw-r--r-- | library/LuaTools.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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) |
