Fix #11938: Check infinite money setting in cases where it was missed (#11939)

This commit is contained in:
merni-ns
2024-02-01 00:41:48 +05:30
committed by GitHub
parent 363e251a10
commit ccaa383e85
4 changed files with 11 additions and 7 deletions

View File

@@ -3435,7 +3435,7 @@ TownActions GetMaskOfTownActions(CompanyID cid, const Town *t)
if (cid != COMPANY_SPECTATOR && !(_settings_game.economy.bribe && t->unwanted[cid])) {
/* Actions worth more than this are not able to be performed */
Money avail = Company::Get(cid)->money;
Money avail = GetAvailableMoney(cid);
/* Check the action bits for validity and
* if they are valid add them */