X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2FguiTable.cpp;h=ed5b0d87b0e07ee27d1fd2a276fcd00354a8fb8a;hb=d4938554818aa71aceb0d360f33c6cfd42f67008;hp=e915770a412da09dec79233c745cfde581b1ad45;hpb=9527984dbcfc0a6cc7aa0470430cb6c3aa4103ba;p=minetest.git diff --git a/src/guiTable.cpp b/src/guiTable.cpp index e915770a4..ed5b0d87b 100644 --- a/src/guiTable.cpp +++ b/src/guiTable.cpp @@ -929,7 +929,7 @@ s32 GUITable::allocString(const std::string &text) std::map::iterator it = m_alloc_strings.find(text); if (it == m_alloc_strings.end()) { s32 id = m_strings.size(); - std::wstring wtext = narrow_to_wide(text); + std::wstring wtext = utf8_to_wide(text); m_strings.push_back(core::stringw(wtext.c_str())); m_alloc_strings.insert(std::make_pair(text, id)); return id;