Skip to content

fix/ownership doesn't validate building::assigned_unit before trying to use it #5403

@ab9rf

Description

@ab9rf
...pps\common\Dwarf Fortress\hack\scripts\fix\ownership.lua:36: Cannot read field building.assigned_unit: not found.
stack traceback:
	[C]: in metamethod '__index'
	...pps\common\Dwarf Fortress\hack\scripts\fix\ownership.lua:36: in local 'relink_zones'
	...pps\common\Dwarf Fortress\hack\scripts\fix\ownership.lua:57: in local 'script_code'
	...rary\steamapps\common\Dwarf Fortress\hack\lua\dfhack.lua:1107: in function 'dfhack.run_script_with_env'
	(...tail calls...)
	[C]: in field 'runCommand'
	...rary\steamapps\common\Dwarf Fortress\hack\lua\dfhack.lua:1150: in upvalue '_run_command'
	...rary\steamapps\common\Dwarf Fortress\hack\lua\dfhack.lua:1165: in function 'dfhack.run_command'
	...\steamapps\common\Dwarf Fortress\hack\scripts\repeat.lua:42: in upvalue 'func'
	...steamapps\common\Dwarf Fortress\hack\lua\repeat-util.lua:40: in function <...steamapps\common\Dwarf Fortress\hack\lua\repeat-util.lua:38>

related discord discussion

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions