Translator now properly falls back on bad server language (bug 4861, r=dvander).

This commit is contained in:
Fyren 2011-05-24 13:25:28 -04:00
parent b4a7d21b9e
commit fefd84d431

View File

@ -866,8 +866,10 @@ void Translator::RebuildLanguageDatabase(const char *lang_header_file)
smcore.strncopy(m_InitialLang, "en", sizeof(m_InitialLang));
m_ServerLang = SOURCEMOD_LANGUAGE_ENGLISH;
}
m_ServerLang = *pServerLang;
else
{
m_ServerLang = *pServerLang;
}
if (!m_Languages.size())
{