Make SetMiscWarning() accept bilingual_str argument

This commit is contained in:
Hennadii Stepanov
2020-06-10 12:14:32 +03:00
parent d1ae7c0355
commit d49612f98a
5 changed files with 20 additions and 20 deletions

View File

@@ -21,7 +21,7 @@ template<typename... Args>
static void FatalError(const char* fmt, const Args&... args)
{
std::string strMessage = tfm::format(fmt, args...);
SetMiscWarning(strMessage);
SetMiscWarning(Untranslated(strMessage));
LogPrintf("*** %s\n", strMessage);
uiInterface.ThreadSafeMessageBox(
Untranslated("Error: A fatal internal error occurred, see debug.log for details"),