From 45e6a03937010ce074a02669a1003e8c44c63a67 Mon Sep 17 00:00:00 2001 From: Capostrophic Date: Sat, 9 May 2020 02:01:55 +0300 Subject: [PATCH] Only reset dialogue history of dialogue GUI mode is gone --- apps/openmw/mwgui/dialogue.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/openmw/mwgui/dialogue.cpp b/apps/openmw/mwgui/dialogue.cpp index bb40bea33..76b219009 100644 --- a/apps/openmw/mwgui/dialogue.cpp +++ b/apps/openmw/mwgui/dialogue.cpp @@ -477,6 +477,8 @@ namespace MWGui void DialogueWindow::onClose() { + if (MWBase::Environment::get().getWindowManager()->containsMode(GM_Dialogue)) + return; // Reset history for (DialogueText* text : mHistoryContents) delete text;