Fix missing/incorrect command error texts

This commit is contained in:
Jonathan G Rennison
2023-08-16 18:55:29 +01:00
parent 1e1ad66e90
commit fac21f3429
3 changed files with 3 additions and 3 deletions

View File

@@ -374,7 +374,7 @@ CommandCost CmdGiveMoney(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
CompanyID dest_company = (CompanyID)p1;
/* You can only transfer funds that is in excess of your loan */
if (c->money - c->current_loan < amount.GetCost() || amount.GetCost() < 0) return CMD_ERROR;
if (c->money - c->current_loan < amount.GetCost() || amount.GetCost() < 0) return_cmd_error(STR_ERROR_INSUFFICIENT_FUNDS);
if (!Company::IsValidID(dest_company)) return CMD_ERROR;
if (flags & DC_EXEC) {