diff --git a/src/xrGame/PhraseDialog.cpp b/src/xrGame/PhraseDialog.cpp index 55ad268b0b0..ba66cb687d8 100644 --- a/src/xrGame/PhraseDialog.cpp +++ b/src/xrGame/PhraseDialog.cpp @@ -254,6 +254,8 @@ CPhrase* CPhraseDialog::AddPhrase( { CPhrase* phrase = NULL; CPhraseGraph::CVertex* _vertex = data()->m_PhraseGraph.vertex(phrase_id); + VERIFY2(!_vertex, make_string("Duplicate phrase ID: [%s] for phrase: [%s]. Existed phrase by this ID: [%s]", phrase_id.c_str(), text, _vertex->data()->GetText()).c_str()); + if (!_vertex) { phrase = xr_new();