From 43dc111833c1fba6b701599a701cb405a9a92e4f Mon Sep 17 00:00:00 2001 From: celestar Date: Sun, 1 Apr 2007 10:54:31 +0000 Subject: (svn r9540) -Fix (r1): Bankrupt AIs no longer buy themselves (usage of wrong variable) --- src/ai/default/default.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ai/default/default.cpp b/src/ai/default/default.cpp index 258935f73..5dc7a16f4 100644 --- a/src/ai/default/default.cpp +++ b/src/ai/default/default.cpp @@ -3822,7 +3822,7 @@ static void AiHandleTakeover(Player *p) 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; } -- cgit v1.2.3-70-g09d2