From da5661a0c8870c532c393ec3d330c3fbb44eb8ac Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 22 May 2009 22:55:41 +0000 Subject: (svn r16393) -Codechange: move VehicleRail to Train. --- src/ai/api/ai_vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai/api/ai_vehicle.cpp') diff --git a/src/ai/api/ai_vehicle.cpp b/src/ai/api/ai_vehicle.cpp index baeeaefa5..046cc3cb5 100644 --- a/src/ai/api/ai_vehicle.cpp +++ b/src/ai/api/ai_vehicle.cpp @@ -49,7 +49,7 @@ } return total_length; } - case VEH_TRAIN: return v->u.rail.cached_total_length; + case VEH_TRAIN: return ((Train *)v)->tcache.cached_total_length; default: return -1; } } -- cgit v1.2.3-54-g00ecf