From 1b43dec1d6cb5363b9de63b1646f7952abf5fa8a Mon Sep 17 00:00:00 2001 From: Darkvater Date: Wed, 6 Apr 2005 09:34:56 +0000 Subject: [PATCH] (svn r2155) - Fix: Company value was $2 when value more than an int32 could handle (use max64 instead of max) --- economy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/economy.c b/economy.c index 4e62063171..8a131155cb 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