Merge pull request #2381 from akortunov/warnfix

Fix an exception during reload when container windows is active
pull/541/head
Andrei Kortunov 6 years ago committed by GitHub
commit 50c87bacea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -161,7 +161,8 @@ namespace MWGui
if (mModel)
mModel->onClose();
MWBase::Environment::get().getMechanicsManager()->onClose(mPtr);
if (!mPtr.isEmpty())
MWBase::Environment::get().getMechanicsManager()->onClose(mPtr);
}
void ContainerWindow::onCloseButtonClicked(MyGUI::Widget* _sender)

Loading…
Cancel
Save