From 9e7cb99dc2d210cf88a577c8fe8218428f9fd6e0 Mon Sep 17 00:00:00 2001 From: Miguel Horta Date: Sat, 3 Jan 2026 17:42:34 +0000 Subject: [PATCH] Codefix: Use active_tab instead of hardcoded value --- src/settings_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index 70e54fc340..8e9e4f1042 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -892,7 +892,7 @@ struct GameOptionsWindow : Window { void OnPaint() override { - if (this->GetWidget(WID_GO_TAB_SELECTION)->shown_plane != 4) { + if (GameOptionsWindow::active_tab != WID_GO_TAB_ADVANCED) { this->DrawWidgets(); return; }