Skip to content

Commit

Permalink
fix structure path to work details
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Nov 12, 2023
1 parent 46d4ea8 commit 722a083
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 @@ -37,6 +37,7 @@ Template for new versions:

## Fixes
- `gui/unit-syndromes`: show the syndrome names properly in the UI
- `emigration`: fix clearing of work details assigned to units that leave the fort

## Misc Improvements
- `warn-stranded`: don't warn for units that are temporarily on unwalkable tiles (e.g. as they pass under a waterfall)
Expand Down
2 changes: 1 addition & 1 deletion emigration.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function desert(u,method,civ)
end

-- disassociate from work details
for _, detail in ipairs(df.global.plotinfo.hauling.work_details) do
for _, detail in ipairs(df.global.plotinfo.labor_info.work_details) do
for k, v in ipairs(detail.assigned_units) do
if v == u.id then
detail.assigned_units:erase(k)
Expand Down

0 comments on commit 722a083

Please sign in to comment.