From 6311e2641fa99d263423f9e7bf0c101684b742fd Mon Sep 17 00:00:00 2001 From: Chugunov Roman Date: Sat, 9 Dec 2023 14:41:50 +0300 Subject: [PATCH] xrGame/PhraseDialog.cpp: Added a checking bad phrase structure --- src/xrGame/PhraseDialog.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xrGame/PhraseDialog.cpp b/src/xrGame/PhraseDialog.cpp index 55ad268b0b0..0ef2bc91279 100644 --- a/src/xrGame/PhraseDialog.cpp +++ b/src/xrGame/PhraseDialog.cpp @@ -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();