From 976399589208256599a4df082319949dcc276180 Mon Sep 17 00:00:00 2001 From: Alexei Dobrohotov Date: Tue, 27 Oct 2020 18:08:14 +0300 Subject: [PATCH] Fix regression #5666 --- apps/openmw/mwgui/tradewindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/openmw/mwgui/tradewindow.cpp b/apps/openmw/mwgui/tradewindow.cpp index e7dbd44471..81d6a8ab30 100644 --- a/apps/openmw/mwgui/tradewindow.cpp +++ b/apps/openmw/mwgui/tradewindow.cpp @@ -519,6 +519,9 @@ namespace MWGui void TradeWindow::onClose() { + // Make sure the window was actually closed and not temporarily hidden. + if (MWBase::Environment::get().getWindowManager()->containsMode(GM_Barter)) + return; resetReference(); } }