Skip to content

Commit 38b3b0f

Browse files
authored
Merge pull request #1376 from myk002/myk_deathcause
[deathcause] fix typo in API call
2 parents fbcb217 + 9032706 commit 38b3b0f

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
@@ -31,6 +31,7 @@ Template for new versions:
3131
## New Features
3232

3333
## Fixes
34+
- `deathcause`: fix error when retrieving the name of a historical figure
3435

3536
## Misc Improvements
3637

deathcause.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function displayDeathEventHistFigUnit(histfig_unit, event)
7575
if slayer_histfig then
7676
str = str .. (", killed by the %s %s"):format(
7777
getRaceNameSingular(slayer_histfig.race),
78-
dfhack.translation.translateName(dfhack.units.getVisiblename(slayer_histfig))
78+
dfhack.translation.translateName(dfhack.units.getVisibleName(slayer_histfig))
7979
)
8080
end
8181

0 commit comments

Comments
 (0)