summaryrefslogtreecommitdiff
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
commit1b43dec1d6cb5363b9de63b1646f7952abf5fa8a (patch)
tree23dc73cab1e56ad6a6d7c43612b17df6e369609e
parentd08dfa84a4c559c97368eb5a7b6174c6c788f200 (diff)
downloadopenttd-1b43dec1d6cb5363b9de63b1646f7952abf5fa8a.tar.xz
(svn r2155) - Fix: Company value was $2 when value more than an int32 could handle (use max64 instead of max)
-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