summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/localplayer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 01e864a6b..89eb3b40a 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -381,7 +381,8 @@ void LocalPlayer::setAction(Action action, int attackType)
mLastTarget = -1;
if (!mLastHitFrom.empty())
{
- debugMsg(_("You were killed by ") + mLastHitFrom);
+ debugMsg(strprintf(_("You were killed by %s"),
+ mLastHitFrom.c_str()));
mLastHitFrom = "";
}
setTarget(nullptr);