summaryrefslogtreecommitdiff
path: root/economy.c
diff options
context:
space:
mode:
Diffstat (limited to 'economy.c')
-rw-r--r--economy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/economy.c b/economy.c
index 8e61855a4..3e5476d8e 100644
--- a/economy.c
+++ b/economy.c
@@ -142,7 +142,8 @@ int UpdateCompanyRatingAndValue(Player *p, bool update)
}
_score_part[owner][SCORE_VEHICLES] = num;
- _score_part[owner][SCORE_MIN_PROFIT] = min_profit;
+ if (min_profit > 0)
+ _score_part[owner][SCORE_MIN_PROFIT] = min_profit;
}
/* Count stations */