Changeset - r12041:db8bc7715f0f
[Not reviewed]
master
0 1 0
yexo - 15 years ago 2009-05-27 23:37:47
yexo@openttd.org
(svn r16453) -Fix: Move some code around so a company is no longer used after deleting it
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/economy.cpp
Show inline comments
 
@@ -559,15 +559,14 @@ static void CompaniesGenStatistics()
 
		c->old_economy[0] = c->cur_economy;
 
		memset(&c->cur_economy, 0, sizeof(c->cur_economy));
 

	
 
		if (c->num_valid_stat_ent != 24) c->num_valid_stat_ent++;
 

	
 
		UpdateCompanyRatingAndValue(c, true);
 
		if (c->block_preview != 0) c->block_preview--;
 
		CompanyCheckBankrupt(c);
 

	
 
		if (c->block_preview != 0) c->block_preview--;
 
	}
 

	
 
	InvalidateWindow(WC_INCOME_GRAPH, 0);
 
	InvalidateWindow(WC_OPERATING_PROFIT, 0);
 
	InvalidateWindow(WC_DELIVERED_CARGO, 0);
 
	InvalidateWindow(WC_PERFORMANCE_HISTORY, 0);
0 comments (0 inline, 0 general)