diff options
Diffstat (limited to 'src/company_gui.cpp')
-rw-r--r-- | src/company_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp index 0c0776cc9..04f280a73 100644 --- a/src/company_gui.cpp +++ b/src/company_gui.cpp @@ -1592,7 +1592,7 @@ struct CompanyWindow : Window this->SetWidgetHiddenState(CW_WIDGET_SELL_SHARE, local); this->SetWidgetHiddenState(CW_WIDGET_COMPANY_PASSWORD, !local || !_networking); this->SetWidgetHiddenState(CW_WIDGET_COMPANY_JOIN, local || !_networking); - this->SetWidgetDisabledState(CW_WIDGET_COMPANY_JOIN, !IsHumanCompany(c->index)); + this->SetWidgetDisabledState(CW_WIDGET_COMPANY_JOIN, c->is_ai); if (!local) { if (_settings_game.economy.allow_shares) { // Shares are allowed |