summaryrefslogtreecommitdiff
path: root/src/build_vehicle_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-06-27 21:36:04 +0000
committerfrosch <frosch@openttd.org>2009-06-27 21:36:04 +0000
commit1e09854cb7484a0317de81d412c6a541a96dacb6 (patch)
tree5d8389a9efbf993b4e39c605d7aa0d5024b6d581 /src/build_vehicle_gui.cpp
parenta288e4d82ff85819aa49061d66ee7e0cfd87e802 (diff)
downloadopenttd-1e09854cb7484a0317de81d412c6a541a96dacb6.tar.xz
(svn r16679) -Codechange: Let GetCapacityOfArticulatedParts() return a CargoArray instead of a pointer to a static array.
Diffstat (limited to 'src/build_vehicle_gui.cpp')
-rw-r--r--src/build_vehicle_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp
index 0a276dcb4..6eb77a645 100644
--- a/src/build_vehicle_gui.cpp
+++ b/src/build_vehicle_gui.cpp
@@ -414,9 +414,9 @@ static GUIEngineList::FilterFunction * const _filter_funcs[] = {
static int DrawCargoCapacityInfo(int left, int right, int y, EngineID engine, VehicleType type, bool refittable)
{
- uint16 *cap = GetCapacityOfArticulatedParts(engine, type);
+ CargoArray cap = GetCapacityOfArticulatedParts(engine, type);
- for (uint c = 0; c < NUM_CARGO; c++) {
+ for (CargoID c = 0; c < NUM_CARGO; c++) {
if (cap[c] == 0) continue;
SetDParam(0, c);