(svn r10247) -Fix (r10210): *always* call SetDParamMoney when you want to place money in some string.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user