Update entity_cl.cpp

develop
Jan Boon 4 years ago committed by GitHub
parent 7249546db6
commit cd8ed8ab57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2302,7 +2302,7 @@ void CEntityCL::onStringAvailable(uint /* stringId */, const std::string &value)
string::size_type pos = replacement.find('$'); string::size_type pos = replacement.find('$');
if (pos != string::npos) 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); string::size_type pos2 = replacement.find('$', pos + 1);
_TitleRaw = replacement.substr(pos+1, pos2 - pos - 1); _TitleRaw = replacement.substr(pos+1, pos2 - pos - 1);
replacement = STRING_MANAGER::CStringManagerClient::getTitleLocalizedName(_TitleRaw, womanTitle); replacement = STRING_MANAGER::CStringManagerClient::getTitleLocalizedName(_TitleRaw, womanTitle);

Loading…
Cancel
Save