diff --git a/docs/changelog.txt b/docs/changelog.txt index 8dafc52c2..5ad0a741c 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -33,6 +33,9 @@ changelog.txt uses a syntax similar to RST, with a few special sequences: # Future +## Fixes +- `confirm`: stopped exposing alternate names when convicting units + ## Misc Improvements - `autohauler`: allow the ``Alchemist`` labor to be enabled in `manipulator` and other labor screens so it can be used for its intended purpose of flagging that no hauling labors should be assigned to a dwarf. Before, the only way to set the flag was to use an external program like Dwarf Therapist. - `embark-assistant`: slightly improved performance of surveying diff --git a/plugins/lua/confirm.lua b/plugins/lua/confirm.lua index b8a815662..13b28962a 100644 --- a/plugins/lua/confirm.lua +++ b/plugins/lua/confirm.lua @@ -211,7 +211,7 @@ function convict.intercept_key(key) screen.cur_column == df.viewscreen_justicest.T_cur_column.ConvictChoices end function convict.get_message() - name = dfhack.TranslateName(screen.convict_choices[screen.cursor_right].name) + name = dfhack.TranslateName(dfhack.units.getVisibleName(screen.convict_choices[screen.cursor_right])) if name == "" then name = "this creature" end