Skip to content

Commit

Permalink
Update autodump.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Bumber64 authored Jul 30, 2024
1 parent 2fa3a43 commit 9f4b85f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gui/autodump.lua
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,9 @@ end

function Autodump:do_dump(pos)
pos = pos or dfhack.gui.getMousePos()
if not pos then return end --Shouldn't happen since button would be disabled
if not pos then --We check this before calling
dfhack.printerr('Autodump:do_dump called with bad pos!')
end

local tt = dfhack.maps.getTileType(pos)
if not (tt and dfhack.maps.isTileVisible(pos)) then
Expand Down

0 comments on commit 9f4b85f

Please sign in to comment.