clean up artifact search code

develop
Myk Taylor 2023-10-12 11:33:22 -07:00
parent 99e437e782
commit 448dd5fa19
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

@ -43,10 +43,11 @@ local function get_world_artifact_search_key(artifact, rumor)
end end
local function cleanup_artifact_vectors(data) local function cleanup_artifact_vectors(data)
print('cleanng up')
local vs_world = dfhack.gui.getDFViewscreen(true) local vs_world = dfhack.gui.getDFViewscreen(true)
vs_world.artifact:assign(data.saved_original) vs_world.artifact:assign(data.saved_original)
vs_world.artifact:resize(data.saved_original_size)
vs_world.artifact_arl:assign(data.saved_flags) vs_world.artifact_arl:assign(data.saved_flags)
vs_world.artifact_arl:resize(data.saved_flags_size)
end end
function WorldOverlay:init() function WorldOverlay:init()