Change: extend the allowed range for max loan setting (#8386)

This commit is contained in:
Pavel Stupnikov
2020-12-16 23:56:32 +03:00
committed by GitHub
parent d989fb516b
commit b2895dfcd0
6 changed files with 24 additions and 18 deletions

View File

@@ -746,7 +746,7 @@ bool AddInflation(bool check_year)
void RecomputePrices()
{
/* Setup maximum loan */
_economy.max_loan = (_settings_game.difficulty.max_loan * _economy.inflation_prices >> 16) / 50000 * 50000;
_economy.max_loan = ((uint64)_settings_game.difficulty.max_loan * _economy.inflation_prices >> 16) / 50000 * 50000;
/* Setup price bases */
for (Price i = PR_BEGIN; i < PR_END; i++) {