Skip to content

Commit d602db3

Browse files
authored
Merge pull request #1340 from Eldresh/Eldresh-Rejuvenate-patch-1
Convert age argument to number in rejuvenate.lua
2 parents 33c6bce + dbfa74b commit d602db3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Template for new versions:
4141
- `control-panel`: fix setting numeric preferences from the commandline
4242
- `gui/quickfort`: fix build mode evluation rules to allow placement of various furniture and constructions on tiles with stair shapes or without orthagonal floor.
4343
- `emigration`: save-and-reload no longer resets the emigration cycle timeout, making gameplay more consistent
44+
- `rejuvenate`: ``--age`` no longer throws the error ``attempt to compare string with number``
4445

4546
## Misc Improvements
4647
- `control-panel`: Add realistic-melting tweak to control-panel registry

rejuvenate.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ local function main(args)
8484
table.insert(units, dfhack.gui.getSelectedUnit(true) or qerror("Please select a unit in the UI."))
8585
end
8686
for _, u in ipairs(units) do
87-
rejuvenate(u, false, args.force, args['dry-run'], args.age)
87+
rejuvenate(u, false, args.force, args['dry-run'], tonumber(args.age))
8888
end
8989
end
9090

0 commit comments

Comments
 (0)