summaryrefslogtreecommitdiff
path: root/src/engine_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/engine_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/engine_gui.cpp')
-rw-r--r--src/engine_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine_gui.cpp b/src/engine_gui.cpp
index 980268673..333f3b88c 100644
--- a/src/engine_gui.cpp
+++ b/src/engine_gui.cpp
@@ -139,8 +139,8 @@ uint GetTotalCapacityOfArticulatedParts(EngineID engine, VehicleType type)
{
uint total = 0;
- uint16 *cap = GetCapacityOfArticulatedParts(engine, type);
- for (uint c = 0; c < NUM_CARGO; c++) {
+ CargoArray cap = GetCapacityOfArticulatedParts(engine, type);
+ for (CargoID c = 0; c < NUM_CARGO; c++) {
total += cap[c];
}