Skip to content

Commit 33c1e52

Browse files
authored
Merge pull request #1381 from NicksWorld/fix/rename-change-language
[gui/rename] fix typo causing error on language change
2 parents 4f0a2ca + 1b4199c commit 33c1e52

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
@@ -33,6 +33,7 @@ Template for new versions:
3333

3434
## Fixes
3535
- `advtools`: fix dfhack-added conversation options not appearing in the ask whereabouts conversation tree
36+
- `gui/rename`: fix error when changing the language of a unit's name
3637

3738
## Misc Improvements
3839
- `assign-preferences`: new ``--show`` option to display the preferences of the selected unit

gui/rename.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ function Rename:set_language(val, prev_val)
704704
sync_name()
705705
else
706706
sync_name.language = val
707-
sync_name.first_name = self.target.first_name
707+
sync_name.first_name = self.target.name.first_name
708708
end
709709
end
710710
end

0 commit comments

Comments
 (0)