aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMikhail Redko <ovitnez@gmail.com>2021-01-04 20:52:43 +0200
committerShauren <shauren.trinity@gmail.com>2022-03-05 21:46:57 +0100
commit81555a8ea40a52a8673edcc18c3fef444a9f6e33 (patch)
treeb02682494f46f924a4b88c12c203c132fe49b466 /src
parentfacb6dd9f90da1d7c44e75f756a3f2a9956a4dd5 (diff)
Core/Misc: Remove unneeded null-terminator after switch from wchar_t to std::wstring in 309851e. Fixes creation characters with declined russian names (#25797)
Closes #23775 (cherry picked from commit eaa22b8a1722fd362bf5ef2c6944b5c50b121afd)
Diffstat (limited to 'src')
-rw-r--r--src/common/Utilities/Util.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/common/Utilities/Util.cpp b/src/common/Utilities/Util.cpp
index ad98bd5e491..4406dc673e0 100644
--- a/src/common/Utilities/Util.cpp
+++ b/src/common/Utilities/Util.cpp
@@ -655,22 +655,22 @@ std::wstring GetMainPartOfName(std::wstring const& wname, uint32 declension)
return wname;
// Important: end length must be <= MAX_INTERNAL_PLAYER_NAME-MAX_PLAYER_NAME (3 currently)
- static std::wstring const a_End = { wchar_t(0x0430), wchar_t(0x0000) };
- static std::wstring const o_End = { wchar_t(0x043E), wchar_t(0x0000) };
- static std::wstring const ya_End = { wchar_t(0x044F), wchar_t(0x0000) };
- static std::wstring const ie_End = { wchar_t(0x0435), wchar_t(0x0000) };
- static std::wstring const i_End = { wchar_t(0x0438), wchar_t(0x0000) };
- static std::wstring const yeru_End = { wchar_t(0x044B), wchar_t(0x0000) };
- static std::wstring const u_End = { wchar_t(0x0443), wchar_t(0x0000) };
- static std::wstring const yu_End = { wchar_t(0x044E), wchar_t(0x0000) };
- static std::wstring const oj_End = { wchar_t(0x043E), wchar_t(0x0439), wchar_t(0x0000) };
- static std::wstring const ie_j_End = { wchar_t(0x0435), wchar_t(0x0439), wchar_t(0x0000) };
- static std::wstring const io_j_End = { wchar_t(0x0451), wchar_t(0x0439), wchar_t(0x0000) };
- static std::wstring const o_m_End = { wchar_t(0x043E), wchar_t(0x043C), wchar_t(0x0000) };
- static std::wstring const io_m_End = { wchar_t(0x0451), wchar_t(0x043C), wchar_t(0x0000) };
- static std::wstring const ie_m_End = { wchar_t(0x0435), wchar_t(0x043C), wchar_t(0x0000) };
- static std::wstring const soft_End = { wchar_t(0x044C), wchar_t(0x0000) };
- static std::wstring const j_End = { wchar_t(0x0439), wchar_t(0x0000) };
+ static std::wstring const a_End = { wchar_t(0x0430) };
+ static std::wstring const o_End = { wchar_t(0x043E) };
+ static std::wstring const ya_End = { wchar_t(0x044F) };
+ static std::wstring const ie_End = { wchar_t(0x0435) };
+ static std::wstring const i_End = { wchar_t(0x0438) };
+ static std::wstring const yeru_End = { wchar_t(0x044B) };
+ static std::wstring const u_End = { wchar_t(0x0443) };
+ static std::wstring const yu_End = { wchar_t(0x044E) };
+ static std::wstring const oj_End = { wchar_t(0x043E), wchar_t(0x0439) };
+ static std::wstring const ie_j_End = { wchar_t(0x0435), wchar_t(0x0439) };
+ static std::wstring const io_j_End = { wchar_t(0x0451), wchar_t(0x0439) };
+ static std::wstring const o_m_End = { wchar_t(0x043E), wchar_t(0x043C) };
+ static std::wstring const io_m_End = { wchar_t(0x0451), wchar_t(0x043C) };
+ static std::wstring const ie_m_End = { wchar_t(0x0435), wchar_t(0x043C) };
+ static std::wstring const soft_End = { wchar_t(0x044C) };
+ static std::wstring const j_End = { wchar_t(0x0439) };
static std::array<std::array<std::wstring const*, 7>, 6> const dropEnds = {{
{ &a_End, &o_End, &ya_End, &ie_End, &soft_End, &j_End, nullptr },