summaryrefslogtreecommitdiff
path: root/vehicle.h
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-03-29 11:19:10 +0000
committercelestar <celestar@openttd.org>2005-03-29 11:19:10 +0000
commit58a72bf48371143268c8b1ae07d1bce6d0d76daf (patch)
treec9bca484f8c447d1e5c5e7e8827b416361992ea3 /vehicle.h
parente39cb78b73144ff093ee8ee2e50c7ab075683a0e (diff)
downloadopenttd-58a72bf48371143268c8b1ae07d1bce6d0d76daf.tar.xz
(svn r2105) -Codechange: Added a cache for the first vehicle of a chain to increase performance, especially with many long trains
Diffstat (limited to 'vehicle.h')
-rw-r--r--vehicle.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vehicle.h b/vehicle.h
index 2eb585c66..5e822aa6c 100644
--- a/vehicle.h
+++ b/vehicle.h
@@ -97,6 +97,7 @@ struct Vehicle {
uint16 index; // NOSAVE: Index in vehicle array
Vehicle *next; // next
+ Vehicle *first; // NOSAVE: pointer to the first vehicle in the chain
StringID string_id; // Displayed string