diff options
author | smatz <smatz@openttd.org> | 2007-12-28 18:25:30 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2007-12-28 18:25:30 +0000 |
commit | 108ab3b91066ec1f97770401ba31f0afb681e794 (patch) | |
tree | ca35c0f55d6809f32b3fbf9c31c826a29d785ac7 /src/economy.cpp | |
parent | c87f20ff37e710575246ee31902c9a7b2235e111 (diff) | |
download | openttd-108ab3b91066ec1f97770401ba31f0afb681e794.tar.xz |
(svn r11717) -Fix [FS#1590]: make sure invalid players have all shares owned by PLAYER_SPECTATOR
Diffstat (limited to 'src/economy.cpp')
-rw-r--r-- | src/economy.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index d05950ea3..862d97089 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -285,6 +285,7 @@ void ChangeOwnershipOfPlayerItems(PlayerID old_player, PlayerID new_player) /* See if the old_player had shares in other companies */ _current_player = old_player; FOR_ALL_PLAYERS(p) { + if (!p->is_active) continue; for (i = 0; i < 4; i++) { if (p->share_owners[i] == old_player) { /* Sell his shares */ |