summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--player_gui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/player_gui.c b/player_gui.c
index c0990a27e..8301c0258 100644
--- a/player_gui.c
+++ b/player_gui.c
@@ -494,6 +494,7 @@ static void PlayerCompanyWndProc(Window *w, WindowEvent *e)
// and the player is not an AI
if (GetAmountOwnedBy(p, OWNER_SPECTATOR) == 1 && !p->is_ai) dis |= 1 << 9;
if (GetAmountOwnedBy(p, _local_player) == 0) dis |= 1 << 10;
+ if (_local_player == OWNER_SPECTATOR) dis |= (1 << 9) | (1 << 10);
w->disabled_state = dis;
DrawWindowWidgets(w);