diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -1170,8 +1170,8 @@ struct NetworkLobbyWindow : public Windo const NetworkGameInfo *gi = &this->server->info; int y = NET_PRC__OFFSET_TOP_WIDGET_COMPANY, pos; - /* Join button is disabled when no company is selected */ - this->SetWidgetDisabledState(NLWW_JOIN, this->company == INVALID_COMPANY); + /* Join button is disabled when no company is selected and for AI companies*/ + this->SetWidgetDisabledState(NLWW_JOIN, this->company == INVALID_COMPANY || GetLobbyCompanyInfo(this->company)->ai); /* Cannot start new company if there are too many */ this->SetWidgetDisabledState(NLWW_NEW, gi->companies_on >= gi->companies_max); /* Cannot spectate if there are too many spectators */