mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-17 04:51:48 +00:00
Fixed: Don't use hash to extract clauses but identifier (else there could be conflict if the same text if used several times)
This commit is contained in:
parent
dea9655cc3
commit
f61f3e777f
1 changed files with 1 additions and 2 deletions
|
@ -3080,12 +3080,11 @@ int injectClause()
|
|||
vector<TClause>::iterator lastClause( first->Clauses.end());
|
||||
for ( ; firstClause != lastClause; ++firstClause)
|
||||
{
|
||||
uint64 hashValue = CI18N::makeHash(firstClause->Text);
|
||||
vector<TStringInfo>::iterator firstRefClause(clauses.begin());
|
||||
vector<TStringInfo>::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);
|
||||
|
|
Loading…
Reference in a new issue