Skip to content

Commit d55c3ba

Browse files
authored
Merge pull request #891 from myk002/myk_emigration
[emigration] fix structure path to work details
2 parents 46d4ea8 + 722a083 commit d55c3ba

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.txt

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Template for new versions:
3737

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

4142
## Misc Improvements
4243
- `warn-stranded`: don't warn for units that are temporarily on unwalkable tiles (e.g. as they pass under a waterfall)

emigration.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function desert(u,method,civ)
7575
end
7676

7777
-- disassociate from work details
78-
for _, detail in ipairs(df.global.plotinfo.hauling.work_details) do
78+
for _, detail in ipairs(df.global.plotinfo.labor_info.work_details) do
7979
for k, v in ipairs(detail.assigned_units) do
8080
if v == u.id then
8181
detail.assigned_units:erase(k)

0 commit comments

Comments
 (0)