From f61f3e777f8129bc11722d2a08cc923eb40cc2ee Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 15 Nov 2016 10:47:02 +0100 Subject: [PATCH] Fixed: Don't use hash to extract clauses but identifier (else there could be conflict if the same text if used several times) --- code/ryzom/tools/translation_tools/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/ryzom/tools/translation_tools/main.cpp b/code/ryzom/tools/translation_tools/main.cpp index 0d868d621..3b7d27a05 100644 --- a/code/ryzom/tools/translation_tools/main.cpp +++ b/code/ryzom/tools/translation_tools/main.cpp @@ -3080,12 +3080,11 @@ int injectClause() vector::iterator lastClause( first->Clauses.end()); for ( ; firstClause != lastClause; ++firstClause) { - uint64 hashValue = CI18N::makeHash(firstClause->Text); vector::iterator firstRefClause(clauses.begin()); vector::iterator lastRefClause(clauses.end()); for ( ; firstRefClause != lastRefClause ; ++firstRefClause) { - if (hashValue == firstRefClause->HashValue && firstClause->Text != firstRefClause->Text) + if (firstClause->Identifier == firstRefClause->Identifier && firstClause->Text != firstRefClause->Text) { firstClause->Text = firstRefClause->Text; firstClause->HashValue = CI18N::makeHash(firstClause->Text);