mirror of https://github.com/OpenTTD/OpenTTD
(svn r2155) - Fix: Company value was $2 when value more than an int32 could handle (use max64 instead of max)
parent
92fe22382a
commit
13fc3271f4
|
@ -108,7 +108,7 @@ int64 CalculateCompanyValue(Player *p) {
|
||||||
|
|
||||||
value += p->money64 - p->current_loan; // add real money value
|
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
|
// if update is set to true, the economy is updated with this score
|
||||||
|
|
Loading…
Reference in New Issue