summaryrefslogtreecommitdiff
path: root/economy.c
diff options
context:
space:
mode:
Diffstat (limited to 'economy.c')
-rw-r--r--economy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/economy.c b/economy.c
index 9ced54475..97fc55c0d 100644
--- a/economy.c
+++ b/economy.c
@@ -420,7 +420,8 @@ static void PlayersCheckBankrupt(Player *p)
p->bankrupt_timeout = 0x456;
break;
} else if (owner == _local_player) {
- _local_player = _network_playas = PLAYER_SPECTATOR;
+ _network_playas = PLAYER_SPECTATOR;
+ SetLocalPlayer(PLAYER_SPECTATOR);
}
#ifdef ENABLE_NETWORK