From 108ab3b91066ec1f97770401ba31f0afb681e794 Mon Sep 17 00:00:00 2001 From: smatz Date: Fri, 28 Dec 2007 18:25:30 +0000 Subject: (svn r11717) -Fix [FS#1590]: make sure invalid players have all shares owned by PLAYER_SPECTATOR --- src/economy.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/economy.cpp') 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 */ -- cgit v1.2.3-54-g00ecf