Skip to content

fix nil index if there are no siege engines on the map (fixes #5751) - #1602

Merged
ab9rf merged 2 commits into
DFHack:masterfrom
chdoc:fix-siegemanager
Aug 22, 2026
Merged

fix nil index if there are no siege engines on the map (fixes #5751)#1602
ab9rf merged 2 commits into
DFHack:masterfrom
chdoc:fix-siegemanager

Conversation

@chdoc

@chdoc chdoc commented Aug 11, 2026

Copy link
Copy Markdown
Member

In addition to fixing the actual nil index, I also disable the buttons to set siege engine actions if there are no siege engines.

fixes: DFHack/dfhack#5751

@ab9rf
ab9rf merged commit e6dbde8 into DFHack:master Aug 22, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

siegemanager throws lua errors in the console if no siege engine is present in the fort

2 participants