From afd3d3dc88869d4bfad5b1df37bab412b71e867e Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 12 Feb 2007 08:28:35 +0000 Subject: [PATCH] fixed a silly bug in translation --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40480 --- core/sm_stringutil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/sm_stringutil.cpp b/core/sm_stringutil.cpp index 4e425168..069cac25 100644 --- a/core/sm_stringutil.cpp +++ b/core/sm_stringutil.cpp @@ -94,8 +94,6 @@ try_serverlang: goto error_out; } - max_params = pTrans.fmt_count; - if (!TryTranslation(pl, key, langid, langcount, &pTrans)) { if (target != LANG_SERVER) @@ -112,6 +110,8 @@ try_serverlang: } } + max_params = pTrans.fmt_count; + for (size_t i=0; iLocalToPhysAddr(params[*arg], reinterpret_cast(&new_params[i]));