only clean up actual data records

develop
Myk Taylor 2023-11-20 16:13:47 -08:00
parent 00c447cb8d
commit 981fef3160
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

@ -61,7 +61,9 @@ function SortOverlay:overlay_onupdate()
not dfhack.gui.matchFocusString(self.viewscreens, dfhack.gui.getDFViewscreen(true)) not dfhack.gui.matchFocusString(self.viewscreens, dfhack.gui.getDFViewscreen(true))
then then
for key,data in pairs(self.state) do for key,data in pairs(self.state) do
do_cleanup(self.handlers, key, data) if type(data) == 'table' then
do_cleanup(self.handlers, key, data)
end
end end
self:reset() self:reset()
self.overlay_onupdate_max_freq_seconds = 300 self.overlay_onupdate_max_freq_seconds = 300