From 99e304d6b5eca5850aefc0861849d8697f2e337a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 5 Oct 2008 04:06:18 -0700 Subject: [PATCH] Fixed a bug where SourceMod failed trying to default back to English when missing translations. --- core/sm_stringutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sm_stringutil.cpp b/core/sm_stringutil.cpp index 96a3831c..26539e4b 100644 --- a/core/sm_stringutil.cpp +++ b/core/sm_stringutil.cpp @@ -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;