Skip to content

Commit

Permalink
xrGame/PhraseDialog.cpp: Added a checking bad phrase structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ChugunovRoman committed Dec 9, 2023
1 parent 466fe12 commit 6311e26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/xrGame/PhraseDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ CPhrase* CPhraseDialog::AddPhrase(
{
CPhrase* phrase = NULL;
CPhraseGraph::CVertex* _vertex = data()->m_PhraseGraph.vertex(phrase_id);

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()));

if (!_vertex)
{
phrase = xr_new<CPhrase>();
Expand Down

0 comments on commit 6311e26

Please sign in to comment.