We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3220332 commit aade3cfCopy full SHA for aade3cf
fix/ownership.lua
@@ -33,7 +33,7 @@ local zone_vecs = {
33
local function relink_zones()
34
for _,zones in ipairs(zone_vecs) do
35
for _,zone in ipairs(zones) do
36
- local unit = zone.assigned_unit
+ local unit = dfhack.buildings.getOwner(zone)
37
if not unit then goto continue end
38
if not utils.linear_index(unit.owned_buildings, zone.id, 'id') then
39
print(('fix/ownership: Restoring %s ownership link for %s'):format(
0 commit comments