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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user