From 1ae2c74d27e97ff396d31a78c8eee35997a62b5d Mon Sep 17 00:00:00 2001 From: TolMera Date: Sun, 19 Jan 2025 18:50:48 +1000 Subject: [PATCH] Update pref-adjust.lua otherwise you'll get an extra error printed to the console when no unit is selected Co-authored-by: Myk --- pref-adjust.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pref-adjust.lua b/pref-adjust.lua index b94f709c7..93ea84d6b 100644 --- a/pref-adjust.lua +++ b/pref-adjust.lua @@ -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.")