From 6237fe146228e84761c6aba14bf7acf6c359f061 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 23 May 2009 09:10:56 +0000 Subject: (svn r16394) -Codechange: move (NewGRF) cache variables into a separate struct so (some vehicle related) NewGRF cache 'desyncs' can be tested easier. --- src/ai/api/ai_vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai') diff --git a/src/ai/api/ai_vehicle.cpp b/src/ai/api/ai_vehicle.cpp index 046cc3cb5..6df24b875 100644 --- a/src/ai/api/ai_vehicle.cpp +++ b/src/ai/api/ai_vehicle.cpp @@ -45,7 +45,7 @@ case VEH_ROAD: { uint total_length = 0; for (const Vehicle *u = v; u != NULL; u = u->Next()) { - total_length += ((RoadVehicle*)u)->cached_veh_length; + total_length += ((RoadVehicle*)u)->rcache.cached_veh_length; } return total_length; } -- cgit v1.2.3-54-g00ecf