(svn r2155) - Fix: Company value was $2 when value more than an int32 could handle (use max64 instead of max)
authorDarkvater
Wed, 06 Apr 2005 09:34:56 +0000
changeset 1651 cb5dc4dc3c40
parent 1650 12a20779af79
child 1652 d8b3ae1b0768
(svn r2155) - Fix: Company value was $2 when value more than an int32 could handle (use max64 instead of max)
economy.c
--- a/economy.c	Tue Apr 05 22:06:02 2005 +0000
+++ b/economy.c	Wed Apr 06 09:34:56 2005 +0000
@@ -108,7 +108,7 @@
 
 	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