diff options
Diffstat (limited to 'network_gui.c')
-rw-r--r-- | network_gui.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/network_gui.c b/network_gui.c index 8bb3f01f6..809511b87 100644 --- a/network_gui.c +++ b/network_gui.c @@ -643,6 +643,10 @@ static void NetworkLobbyWindowWndProc(Window *w, WindowEvent *e) if (_network_lobby_company_count == MAX_PLAYERS) w->disabled_state |= (1<<8); + /* You can not join a server as spectator when it has no companies active.. + it causes some nasty crashes */ + if (_network_lobby_company_count == 0) + w->disabled_state |= (1<<9); DrawWindowWidgets(w); |