From 8decd356079a13dcd0f4b18dec2ca6acffaf907a Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Sun, 3 Dec 2017 21:49:13 +0400 Subject: [PATCH] Fixes crash on quickload from the container menu (bug #4239) --- apps/openmw/mwgui/container.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwgui/container.cpp b/apps/openmw/mwgui/container.cpp index 444eaff85..9222f1d02 100644 --- a/apps/openmw/mwgui/container.cpp +++ b/apps/openmw/mwgui/container.cpp @@ -154,7 +154,8 @@ namespace MWGui { WindowBase::onClose(); - mModel->onClose(); + if (mModel) + mModel->onClose(); } void ContainerWindow::onCloseButtonClicked(MyGUI::Widget* _sender)