1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 03:54:40 +00:00

Fix warning

This commit is contained in:
uramer 2022-01-29 18:46:07 +01:00
parent 1455aa3e02
commit db9e734a6a

View File

@ -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);
}