(svn r16679) -Codechange: Let GetCapacityOfArticulatedParts() return a CargoArray instead of a pointer to a static array.

This commit is contained in:
frosch
2009-06-27 21:36:04 +00:00
parent 523cde0798
commit ce55eda3e1
7 changed files with 13 additions and 15 deletions

View File

@@ -70,7 +70,7 @@
switch (e->type) {
case VEH_ROAD:
case VEH_TRAIN: {
uint16 *capacities = GetCapacityOfArticulatedParts(engine_id, e->type);
CargoArray capacities = GetCapacityOfArticulatedParts(engine_id, e->type);
for (CargoID c = 0; c < NUM_CARGO; c++) {
if (capacities[c] == 0) continue;
return capacities[c];