diff options
Diffstat (limited to 'src/misc_cmd.cpp')
-rw-r--r-- | src/misc_cmd.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/misc_cmd.cpp b/src/misc_cmd.cpp index 830354c53..45e8f99c6 100644 --- a/src/misc_cmd.cpp +++ b/src/misc_cmd.cpp @@ -341,6 +341,8 @@ CommandCost CmdMoneyCheat(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) */ CommandCost CmdGiveMoney(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) { + if (!_patches.give_money) return CMD_ERROR; + const Player *p = GetPlayer(_current_player); CommandCost amount(min((Money)p1, (Money)20000000LL)); |