Merge branch 'PR-global-local-crash' of git://github.com/marynate/FlaxEngine into marynate-PR-global-local-crash

This commit is contained in:
2021-08-07 16:52:39 +02:00
+6 -1
View File
@@ -189,7 +189,12 @@ void LocalizationService::OnLocalizationChanged()
localeName[currentCulture.Length() + 5] = '8';
localeName[currentCulture.Length() + 6] = 0;
}
std::locale::global(std::locale(localeName));
try
{
std::locale::global(std::locale(localeName));
}
catch (std::runtime_error const&) {}
catch (...) {}
}
#endif