diff --git a/src/xrGame/PhraseDialog.cpp b/src/xrGame/PhraseDialog.cpp index 55ad268b0b0..ba40fe02597 100644 --- a/src/xrGame/PhraseDialog.cpp +++ b/src/xrGame/PhraseDialog.cpp @@ -254,17 +254,17 @@ CPhrase* CPhraseDialog::AddPhrase( { CPhrase* phrase = NULL; CPhraseGraph::CVertex* _vertex = data()->m_PhraseGraph.vertex(phrase_id); - if (!_vertex) - { - phrase = xr_new(); - VERIFY(phrase); - phrase->SetID(phrase_id); - phrase->SetText(text); - phrase->SetGoodwillLevel(goodwil_level); + VERIFY2(!_vertex, make_string("Dublicate phrase ID: [%s] for phrase: [%s]. Existed phrase by this ID: [%s]", phrase_id.c_str(), text, _vertex->data()->GetText())); - data()->m_PhraseGraph.add_vertex(phrase, phrase_id); - } + phrase = xr_new(); + VERIFY(phrase); + phrase->SetID(phrase_id); + + phrase->SetText(text); + phrase->SetGoodwillLevel(goodwil_level); + + data()->m_PhraseGraph.add_vertex(phrase, phrase_id); if (prev_phrase_id != "") data()->m_PhraseGraph.add_edge(prev_phrase_id, phrase_id, 0.f);