core/sm_stringutil.cpp
changeset 2339 faa541e90718
parent 2289 44045ead61cd
child 2515 09a125a571ff
     1.1 --- a/core/sm_stringutil.cpp	Sun Oct 05 01:09:58 2008 -0500
     1.2 +++ b/core/sm_stringutil.cpp	Sun Oct 05 04:06:18 2008 -0700
     1.3 @@ -102,7 +102,7 @@
     1.4  		}
     1.5  		else if (langid != SOURCEMOD_LANGUAGE_ENGLISH)
     1.6  		{
     1.7 -			if (!pPhrases->FindTranslation(key, SOURCEMOD_LANGUAGE_ENGLISH, &pTrans))
     1.8 +			if (pPhrases->FindTranslation(key, SOURCEMOD_LANGUAGE_ENGLISH, &pTrans) != Trans_Okay)
     1.9  			{
    1.10  				pCtx->ThrowNativeErrorEx(SP_ERROR_PARAM, "Language phrase \"%s\" not found", key);
    1.11  				goto error_out;