diff --git a/changelog.txt b/changelog.txt index d8d8dad2c2..375063963e 100644 --- a/changelog.txt +++ b/changelog.txt @@ -17,6 +17,7 @@ that repo. ## Fixes - `gui/autodump`: when "include items claimed by jobs" is on, actually cancel the job so the item can be teleported +- `gui/gm-unit`: fix commandline processing when a unit id is specified - `suspendmanager`: take in account already built blocking buildings diff --git a/gui/gm-unit.lua b/gui/gm-unit.lua index 2e078f38b0..f37ec6f546 100644 --- a/gui/gm-unit.lua +++ b/gui/gm-unit.lua @@ -9,7 +9,7 @@ rng = rng or dfhack.random.new(nil, 10) local target --TODO: add more ways to guess what unit you want to edit if args[1] ~= nil then - target = df.units.find(args[1]) + target = df.unit.find(args[1]) else target = dfhack.gui.getSelectedUnit(true) end