diff options
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/oldloader_sl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/oldloader_sl.cpp b/src/saveload/oldloader_sl.cpp index 0b449ca90..afb60401e 100644 --- a/src/saveload/oldloader_sl.cpp +++ b/src/saveload/oldloader_sl.cpp @@ -666,10 +666,10 @@ static bool LoadOldCargoPaymentRate(LoadgameState *ls, int num) * which otherwise would cause much less income while the annual running costs of * the vehicles stay the same" */ - Money m = ((((Money)_old_price) << 16) + _old_price_frac) * 124 / 74; + Money m = ((((Money)_old_price) << 16) + (uint)_old_price_frac) * 124 / 74; _old_price = m >> 16; - _old_price_frac = GB(m, 0, 16); + _old_price_frac = GB((int64)m, 0, 16); } _cargo_payment_rates[num] = -_old_price; |