Codefix: Use active_tab instead of hardcoded value

This commit is contained in:
Miguel Horta
2026-01-05 21:25:43 +01:00
committed by rubidium42
parent fed2149846
commit 9e7cb99dc2
+1 -1
View File
@@ -892,7 +892,7 @@ struct GameOptionsWindow : Window {
void OnPaint() override
{
if (this->GetWidget<NWidgetStacked>(WID_GO_TAB_SELECTION)->shown_plane != 4) {
if (GameOptionsWindow::active_tab != WID_GO_TAB_ADVANCED) {
this->DrawWidgets();
return;
}