From e01d122b8e6522c9e74b783d85b70b223b298d74 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 30 Dec 2024 20:58:51 +0300 Subject: [PATCH] Added a checking bad phrase structure (#1555) --- src/xrGame/PhraseDialog.cpp | 2 ++ 1 file changed, 2 insertions(+) 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();