summaryrefslogtreecommitdiff
path: root/economy.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-04-06 09:34:56 +0000
committerDarkvater <darkvater@openttd.org>2005-04-06 09:34:56 +0000
commit13fc3271f4ce7552b26ebd66fb320e5eed84620b (patch)
tree23dc73cab1e56ad6a6d7c43612b17df6e369609e /economy.c
parent92fe22382a8f0ea362fb35b28b8eb228c1e2e339 (diff)
downloadopenttd-13fc3271f4ce7552b26ebd66fb320e5eed84620b.tar.xz
(svn r2155) - Fix: Company value was $2 when value more than an int32 could handle (use max64 instead of max)
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 4e6206317..8a131155c 100644
--- a/economy.c
+++ b/economy.c
@@ -108,7 +108,7 @@ int64 CalculateCompanyValue(Player *p) {
value += p->money64 - p->current_loan; // add real money value
- return max(value, 1);
+ return max64(value, 1);
}
// if update is set to true, the economy is updated with this score