Fix sending money to companies in single-player mode

This commit is contained in:
Jonathan G Rennison
2017-07-03 21:42:14 +01:00
parent e43f0dad21
commit 86bea16c60
2 changed files with 2 additions and 2 deletions

View File

@@ -261,7 +261,7 @@ CommandCost CmdGiveMoney(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
/* 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 (!_networking || !Company::IsValidID(dest_company)) return CMD_ERROR;
if (!Company::IsValidID(dest_company)) return CMD_ERROR;
if (flags & DC_EXEC) {
/* Add money to company */