diff --git a/changelog.txt b/changelog.txt index e8ad3bfc3..45dacce45 100644 --- a/changelog.txt +++ b/changelog.txt @@ -31,6 +31,7 @@ Template for new versions: ## New Features ## Fixes +- `deathcause`: fix error when retrieving the name of a historical figure ## Misc Improvements diff --git a/deathcause.lua b/deathcause.lua index 16e05d5f5..953f36bd2 100644 --- a/deathcause.lua +++ b/deathcause.lua @@ -75,7 +75,7 @@ function displayDeathEventHistFigUnit(histfig_unit, event) if slayer_histfig then str = str .. (", killed by the %s %s"):format( getRaceNameSingular(slayer_histfig.race), - dfhack.translation.translateName(dfhack.units.getVisiblename(slayer_histfig)) + dfhack.translation.translateName(dfhack.units.getVisibleName(slayer_histfig)) ) end