src/ai/default/default.cpp
changeset 6404 e74c41bdba64
parent 6400 bc0ee88fb279
child 6453 226bcddeba32
--- a/src/ai/default/default.cpp	Sat Mar 31 12:19:22 2007 +0000
+++ b/src/ai/default/default.cpp	Sun Apr 01 10:54:31 2007 +0000
@@ -3822,7 +3822,7 @@
 		if (best_pl->player_money >> 1 >= p->bankrupt_value) {
 			// Computer wants to buy it.
 			PlayerID old_p = _current_player;
-			_current_player = p->index;
+			_current_player = best_pl->index;
 			DoCommand(0, old_p, 0, DC_EXEC, CMD_BUY_COMPANY);
 			_current_player = old_p;
 		}