GUI: Prevent segfault for Options in GMM in-game

This commit is contained in:
antoniou79 2021-10-12 15:43:10 +03:00
parent dd791b3453
commit 56ef67f6d5

View File

@ -1808,7 +1808,9 @@ void OptionsDialog::reflowLayout() {
}
void OptionsDialog::setupGraphicsTab() {
setGraphicSettingsState(_enableGraphicSettings);
if (_graphicsTabId != -1) {
setGraphicSettingsState(_enableGraphicSettings);
}
if (!_fullscreenCheckbox)
return;
_gfxPopUpDesc->setVisible(true);