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
commit120f9b2ba1d196ca8f89a0275a87d808f039f29e (patch)
treeeb31a0e1319ad55d81da9fbc8b18b65c817c6f58 /economy.c
parent71de43f4db47ca67c72d21684a5affde19e6685f (diff)
downloadopenttd-120f9b2ba1d196ca8f89a0275a87d808f039f29e.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) {