mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-24 15:56:22 +00:00
Fix crash in translation_tools
This commit is contained in:
parent
b85af4e59e
commit
c7a85d7191
1 changed files with 11 additions and 8 deletions
|
@ -2022,10 +2022,13 @@ void assertUniq(const vector<TPhrase>& reference)
|
|||
phraseIdentifier.insert(first->Identifier);
|
||||
vector<TClause>::const_iterator first2( first->Clauses.begin() );
|
||||
vector<TClause>::const_iterator last2( first->Clauses.end() );
|
||||
if (clauseIdentifier.find(first2->Identifier) != clauseIdentifier.end() )
|
||||
for( ; first2 != last2; ++first2)
|
||||
{
|
||||
nlwarning("Clause %s defined more than once.", first2->Identifier.c_str());
|
||||
exit(-1);
|
||||
if (clauseIdentifier.find(first2->Identifier) != clauseIdentifier.end() )
|
||||
{
|
||||
nlwarning("Clause %s defined more than once.", first2->Identifier.c_str());
|
||||
exit(-1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue