src/train_cmd.cpp
changeset 7498 ce6588257e8d
parent 7487 9ef3bd32c2eb
child 7506 e52d89f5c7c1
--- a/src/train_cmd.cpp	Thu Jun 21 17:18:33 2007 +0000
+++ b/src/train_cmd.cpp	Thu Jun 21 17:25:17 2007 +0000
@@ -3422,7 +3422,7 @@
 		if (v->type == VEH_TRAIN && IsFrontEngine(v)) {
 			/* show warning if train is not generating enough income last 2 years (corresponds to a red icon in the vehicle list) */
 			if (_patches.train_income_warn && v->owner == _local_player && v->age >= 730 && v->profit_this_year < 0) {
-				SetDParamMoney(1, v->profit_this_year);
+				SetDParam(1, v->profit_this_year);
 				SetDParam(0, v->unitnumber);
 				AddNewsItem(
 					STR_TRAIN_IS_UNPROFITABLE,