From db9e734a6ad6ca112914cf87f4fd934f322d4118 Mon Sep 17 00:00:00 2001 From: uramer Date: Sat, 29 Jan 2022 18:46:07 +0100 Subject: [PATCH] Fix warning --- apps/openmw/mwgui/settingswindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwgui/settingswindow.cpp b/apps/openmw/mwgui/settingswindow.cpp index d41d9cc4f0..2abea56064 100644 --- a/apps/openmw/mwgui/settingswindow.cpp +++ b/apps/openmw/mwgui/settingswindow.cpp @@ -777,7 +777,7 @@ namespace MWGui mScriptChild = mScriptView->getChildCount() > 0 ? mScriptView->getChildAt(0) : nullptr; MyGUI::IntSize canvasSize = mScriptChild ? mScriptChild->getSize() : MyGUI::IntSize(); if (mScriptChild) - mScriptChild->setVisible(mScriptView->isVisible()); + mScriptChild->setVisible(mScriptView->getVisible()); mScriptView->setCanvasSize(canvasSize); }