1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-18 18:02:37 +01:00

Codefix: Use active_tab instead of hardcoded value

This commit is contained in:
Miguel Horta
2026-01-03 17:42:34 +00:00
committed by rubidium42
parent fed2149846
commit 9e7cb99dc2

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