From 73bcd407765416c408dd96c3071f19e71ac969b9 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Tue, 30 Jan 2024 19:47:47 +0000 Subject: [PATCH] Fix taking over a company using shares using the wrong news string See: #637 --- src/economy.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/economy.cpp b/src/economy.cpp index 07c1621fad..2dc190c093 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -2538,8 +2538,7 @@ CommandCost CmdBuyShareInCompany(TileIndex tile, DoCommandFlag flags, uint32_t p auto current_company_owns_share = [](auto share_owner) { return share_owner == _current_company; }; if (std::all_of(c->share_owners.begin(), c->share_owners.end(), current_company_owns_share)) { - c->bankrupt_value = 0; - DoAcquireCompany(c, false); + DoAcquireCompany(c, true); } InvalidateWindowData(WC_COMPANY, target_company); CompanyAdminUpdate(c);