From 1e09854cb7484a0317de81d412c6a541a96dacb6 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 27 Jun 2009 21:36:04 +0000 Subject: (svn r16679) -Codechange: Let GetCapacityOfArticulatedParts() return a CargoArray instead of a pointer to a static array. --- src/ai/api/ai_event_types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai/api/ai_event_types.cpp') diff --git a/src/ai/api/ai_event_types.cpp b/src/ai/api/ai_event_types.cpp index 80607220d..0f757be18 100644 --- a/src/ai/api/ai_event_types.cpp +++ b/src/ai/api/ai_event_types.cpp @@ -35,7 +35,7 @@ int32 AIEventEnginePreview::GetCapacity() switch (e->type) { case VEH_ROAD: case VEH_TRAIN: { - uint16 *capacities = GetCapacityOfArticulatedParts(engine, e->type); + CargoArray capacities = GetCapacityOfArticulatedParts(engine, e->type); for (CargoID c = 0; c < NUM_CARGO; c++) { if (capacities[c] == 0) continue; return capacities[c]; -- cgit v1.2.3-54-g00ecf