From 90327062f5e451f5a0b804c984c242a84148f32d Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Sat, 18 Jan 2025 09:16:22 -0800 Subject: [PATCH] fix typo in API call --- changelog.txt | 1 + deathcause.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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