summaryrefslogtreecommitdiff
path: root/src/build_vehicle_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-04-21 16:52:58 +0000
committerfrosch <frosch@openttd.org>2009-04-21 16:52:58 +0000
commitd338fff1b986b663b786ac673e97f5d240a628ef (patch)
tree93f740b1eb33715edde6fc50b6a2d1a2a4c70cc0 /src/build_vehicle_gui.cpp
parent10c98f7e0ecc896af956a10ed392607a7864fef1 (diff)
downloadopenttd-d338fff1b986b663b786ac673e97f5d240a628ef.tar.xz
(svn r16110) -Codechange: use {CARGO} instead hardcoded cargo name (there is always something duplicated :p)
Diffstat (limited to 'src/build_vehicle_gui.cpp')
-rw-r--r--src/build_vehicle_gui.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp
index 44f27095e..5fed1677a 100644
--- a/src/build_vehicle_gui.cpp
+++ b/src/build_vehicle_gui.cpp
@@ -567,8 +567,10 @@ static int DrawAircraftPurchaseInfo(int left, int right, int y, EngineID engine_
/* Cargo capacity */
if (cargo == CT_INVALID || cargo == CT_PASSENGERS) {
- SetDParam(0, e->GetDisplayDefaultCapacity());
- SetDParam(1, avi->mail_capacity);
+ SetDParam(0, CT_PASSENGERS);
+ SetDParam(1, e->GetDisplayDefaultCapacity());
+ SetDParam(2, CT_MAIL);
+ SetDParam(3, avi->mail_capacity);
DrawString(left, right, y, STR_PURCHASE_INFO_AIRCRAFT_CAPACITY, TC_FROMSTRING);
} else {
/* Note, if the default capacity is selected by the refit capacity