[Bug]: Ineffective overflow protection in CmdIncreaseLoan #10009
Labels
bug
Something isn't working
priority: low
This issue should be fixed but has either a low impact or is en edge-case
Version of OpenTTD
0355299
Expected result
When taking out a loan, if the total bank balance would exceed the maximum possible bank balance, the command should error.
Actual result
When taking out a loan, if the total bank balance would exceed the maximum possible bank balance, you lose some of your 'Own Funds', just enough to bring your total bank balance at or under the maximum.
Steps to reproduce
Caused by the following:
OpenTTD/src/misc_cmd.cpp
Lines 63 to 64 in 0355299
The text was updated successfully, but these errors were encountered: