diff options
Diffstat (limited to 'src/players.cpp')
-rw-r--r-- | src/players.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/players.cpp b/src/players.cpp index 56c117c94..9a4f61ce1 100644 --- a/src/players.cpp +++ b/src/players.cpp @@ -178,7 +178,7 @@ bool CheckPlayerHasMoney(CommandCost cost) if (cost.GetCost() > 0) { PlayerID pid = _current_player; if (IsValidPlayer(pid) && cost.GetCost() > GetPlayer(pid)->player_money) { - SetDParam(0, cost.GetCost()); + SetDParamMoney(0, cost.GetCost()); _error_message = STR_0003_NOT_ENOUGH_CASH_REQUIRES; return false; } |