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 6, 2023
1 parent 466fe12 commit 495bbe4
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 495bbe4

Please sign in to comment.