From cd8ed8ab576747bce8f2273f87068e50c90bc4b7 Mon Sep 17 00:00:00 2001 From: Jan Boon Date: Sat, 31 Oct 2020 16:23:41 +0800 Subject: [PATCH] Update entity_cl.cpp --- ryzom/client/src/entity_cl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryzom/client/src/entity_cl.cpp b/ryzom/client/src/entity_cl.cpp index 77d1e3c65..4c1b4a842 100644 --- a/ryzom/client/src/entity_cl.cpp +++ b/ryzom/client/src/entity_cl.cpp @@ -2302,7 +2302,7 @@ void CEntityCL::onStringAvailable(uint /* stringId */, const std::string &value) string::size_type pos = replacement.find('$'); if (pos != string::npos) { - _EntityName = _EntityName = STRING_MANAGER::CStringManagerClient::getLocalizedName(sn.substr(0, pos)); + _EntityName = _EntityName = STRING_MANAGER::CStringManagerClient::getLocalizedName(replacement.substr(0, pos)); string::size_type pos2 = replacement.find('$', pos + 1); _TitleRaw = replacement.substr(pos+1, pos2 - pos - 1); replacement = STRING_MANAGER::CStringManagerClient::getTitleLocalizedName(_TitleRaw, womanTitle);