Skip to content

Commit

Permalink
Update pref-adjust.lua
Browse files Browse the repository at this point in the history
otherwise you'll get an extra error printed to the console when no unit is selected

Co-authored-by: Myk <myk.taylor@gmail.com>
  • Loading branch information
TolMera and myk002 authored Jan 19, 2025
1 parent 5b7e692 commit 1ae2c74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pref-adjust.lua
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ elseif opt == "all" then
elseif opt == "goth_all" then
handle_all("GOTH")
if opt == "show" then
local unit = dfhack.gui.getSelectedUnit()
local unit = dfhack.gui.getSelectedUnit(true)
get_preferences(unit)
else
print ("Sets preferences of one dwarf, or of all dwarves, using profiles.")
Expand Down

0 comments on commit 1ae2c74

Please sign in to comment.