Mercurial > hg > openttd
changeset 12046:da0c682ff327 draft
(svn r16453) -Fix: Move some code around so a company is no longer used after deleting it
author | yexo <yexo@openttd.org> |
---|---|
date | Wed, 27 May 2009 23:37:47 +0000 |
parents | c1580f98fb3c |
children | 777e9d7a1480 |
files | src/economy.cpp |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/economy.cpp +++ b/src/economy.cpp @@ -562,9 +562,8 @@ 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);