summaryrefslogtreecommitdiff
path: root/build_vehicle_gui.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-10-20 11:53:29 +0000
committerpeter1138 <peter1138@openttd.org>2006-10-20 11:53:29 +0000
commit8411b3b9fe2a27789fb5c36b2165c2c6c8c5708a (patch)
tree6b676140b8977dd0e425e562f8bb9f2d5caa3e6f /build_vehicle_gui.c
parent5b72dd22e8f64bf43484fad783e06eff6c71c01a (diff)
downloadopenttd-8411b3b9fe2a27789fb5c36b2165c2c6c8c5708a.tar.xz
(svn r6855) - Codechange: When displaying a "quantity of cargo" string, use the {CARGO} command and supply the cargo type and quantity, instead of manually looking up the cargo type's string.
Diffstat (limited to 'build_vehicle_gui.c')
-rw-r--r--build_vehicle_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/build_vehicle_gui.c b/build_vehicle_gui.c
index 002e69429..ce7f91a83 100644
--- a/build_vehicle_gui.c
+++ b/build_vehicle_gui.c
@@ -231,7 +231,7 @@ void DrawAircraftPurchaseInfo(int x, int y, EngineID engine_number)
} else {
/* Note, if the default capacity is selected by the refit capacity
* callback, then the capacity shown is likely to be incorrect. */
- SetDParam(0, _cargoc.names_long[cargo]);
+ SetDParam(0, cargo);
SetDParam(1, AircraftDefaultCargoCapacity(cargo, engine_number));
SetDParam(2, STR_9842_REFITTABLE);
DrawString(x, y, STR_PURCHASE_INFO_CAPACITY, 0);