Fix error log encoding

This commit is contained in:
Benau 2018-09-28 09:59:40 +08:00
parent 7720ab45f5
commit 136b649716

View File

@ -634,8 +634,7 @@ void STKHost::setErrorMessage(const irr::core::stringw &message)
{
if (!message.empty())
{
irr::core::stringc s(message.c_str());
Log::error("STKHost", "%s", s.c_str());
Log::error("STKHost", "%s", StringUtils::wideToUtf8(message).c_str());
}
m_error_message = message;
} // setErrorMessage