Fixed a bug where SourceMod failed trying to default back to English when missing translations.

This commit is contained in:
David Anderson 2008-10-05 04:06:18 -07:00
parent 4e7000368f
commit 99e304d6b5

View File

@ -102,7 +102,7 @@ try_serverlang:
}
else if (langid != SOURCEMOD_LANGUAGE_ENGLISH)
{
if (!pPhrases->FindTranslation(key, SOURCEMOD_LANGUAGE_ENGLISH, &pTrans))
if (pPhrases->FindTranslation(key, SOURCEMOD_LANGUAGE_ENGLISH, &pTrans) != Trans_Okay)
{
pCtx->ThrowNativeErrorEx(SP_ERROR_PARAM, "Language phrase \"%s\" not found", key);
goto error_out;