diff options
Diffstat (limited to 'src/misc_cmd.cpp')
-rw-r--r-- | src/misc_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc_cmd.cpp b/src/misc_cmd.cpp index 6c4f2f9f7..c8408ee85 100644 --- a/src/misc_cmd.cpp +++ b/src/misc_cmd.cpp @@ -35,7 +35,7 @@ CommandCost CmdSetPlayerFace(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) { PlayerFace pf = (PlayerFace)p2; - if (!IsValidPlayerFace(pf)) return CMD_ERROR; + if (!IsValidPlayerIDFace(pf)) return CMD_ERROR; if (flags & DC_EXEC) { GetPlayer(_current_player)->face = pf; @@ -366,7 +366,7 @@ CommandCost CmdGiveMoney(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) /* You can only transfer funds that is in excess of your loan */ if (p->player_money - p->current_loan < amount.GetCost() || amount.GetCost() <= 0) return CMD_ERROR; - if (!_networking || !IsValidPlayer((PlayerID)p2)) return CMD_ERROR; + if (!_networking || !IsValidPlayerID((PlayerID)p2)) return CMD_ERROR; if (flags & DC_EXEC) { /* Add money to player */ |