mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-24 15:09:10 +00:00
(svn r16453) -Fix: Move some code around so a company is no longer used after deleting it
This commit is contained in:
@@ -562,9 +562,8 @@ static void CompaniesGenStatistics()
|
|||||||
if (c->num_valid_stat_ent != 24) c->num_valid_stat_ent++;
|
if (c->num_valid_stat_ent != 24) c->num_valid_stat_ent++;
|
||||||
|
|
||||||
UpdateCompanyRatingAndValue(c, true);
|
UpdateCompanyRatingAndValue(c, true);
|
||||||
CompanyCheckBankrupt(c);
|
|
||||||
|
|
||||||
if (c->block_preview != 0) c->block_preview--;
|
if (c->block_preview != 0) c->block_preview--;
|
||||||
|
CompanyCheckBankrupt(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
InvalidateWindow(WC_INCOME_GRAPH, 0);
|
InvalidateWindow(WC_INCOME_GRAPH, 0);
|
||||||
|
Reference in New Issue
Block a user