summaryrefslogtreecommitdiff
path: root/economy.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-03-01 19:32:55 +0000
committertruelight <truelight@openttd.org>2005-03-01 19:32:55 +0000
commit862faa16c0b075b0f2ba765a7a2eee86d34c62f0 (patch)
treeeb31a0e1319ad55d81da9fbc8b18b65c817c6f58 /economy.c
parent6519d3bc97ec4eded4ff415c158856b77f139ee1 (diff)
downloadopenttd-862faa16c0b075b0f2ba765a7a2eee86d34c62f0.tar.xz
(svn r1919) -Fix: Minimum profit of vehicles was calculated wrong for Performance Rating
Diffstat (limited to 'economy.c')
-rw-r--r--economy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/economy.c b/economy.c
index 3e5476d8e..62b63e24a 100644
--- a/economy.c
+++ b/economy.c
@@ -123,7 +123,7 @@ int UpdateCompanyRatingAndValue(Player *p, bool update)
/* Count vehicles */
{
Vehicle *v;
- int32 min_profit = 0;
+ int32 min_profit = score_info[SCORE_MIN_PROFIT].needed;
uint num = 0;
FOR_ALL_VEHICLES(v) {