diff options
Diffstat (limited to 'src/ai/api')
-rw-r--r-- | src/ai/api/ai_vehicle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |