From df7786f7899edd54456b42ac12469c364a737457 Mon Sep 17 00:00:00 2001 From: yexo Date: Wed, 27 May 2009 23:37:47 +0000 Subject: (svn r16453) -Fix: Move some code around so a company is no longer used after deleting it --- src/economy.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/economy.cpp b/src/economy.cpp index a47cf74de..0b9497812 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -562,9 +562,8 @@ static void CompaniesGenStatistics() if (c->num_valid_stat_ent != 24) c->num_valid_stat_ent++; UpdateCompanyRatingAndValue(c, true); - CompanyCheckBankrupt(c); - if (c->block_preview != 0) c->block_preview--; + CompanyCheckBankrupt(c); } InvalidateWindow(WC_INCOME_GRAPH, 0); -- cgit v1.2.3-70-g09d2