Skip to content

Commit

Permalink
Merge pull request #763 from myk002/myk_gmunit
Browse files Browse the repository at this point in the history
[gui/gm-unit] fix typo in commandline processing
  • Loading branch information
myk002 authored Jul 6, 2023
2 parents 086efd3 + 596e68b commit a425689
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion gui/gm-unit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a425689

Please sign in to comment.