From 185ec2ec75d7cdd46c98cd3ffcfeed851c830b96 Mon Sep 17 00:00:00 2001 From: Chugunov Roman Date: Wed, 6 Dec 2023 15:24:40 +0300 Subject: [PATCH] xrGame/PhraseDialog.cpp: Added a checking bad phrase structure --- src/xrGame/PhraseDialog.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xrGame/PhraseDialog.cpp b/src/xrGame/PhraseDialog.cpp index 55ad268b0b0..245dc458600 100644 --- a/src/xrGame/PhraseDialog.cpp +++ b/src/xrGame/PhraseDialog.cpp @@ -254,6 +254,11 @@ CPhrase* CPhraseDialog::AddPhrase( { CPhrase* phrase = NULL; CPhraseGraph::CVertex* _vertex = data()->m_PhraseGraph.vertex(phrase_id); + +#ifndef MASTER_GOLD + 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())); +#endif + if (!_vertex) { phrase = xr_new();