summaryrefslogtreecommitdiff
path: root/src/vehicle.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-01-09 16:27:25 +0000
committerpeter1138 <peter1138@openttd.org>2007-01-09 16:27:25 +0000
commit207f7eb1675e7e54594d183453a0625b936532c1 (patch)
tree4484c63f8dccaabea1adc7501fc4c1056c3638a2 /src/vehicle.h
parentc600e8cec53f70d1e2e549431969ae5b180df613 (diff)
downloadopenttd-207f7eb1675e7e54594d183453a0625b936532c1.tar.xz
(svn r8007) -Codechange: Change _vehicle_position_hash from VehicleID to Vehicle*. This removes the need for look ups by index. Also declare the array static.
Diffstat (limited to 'src/vehicle.h')
-rw-r--r--src/vehicle.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.h b/src/vehicle.h
index 10ca04903..612807f48 100644
--- a/src/vehicle.h
+++ b/src/vehicle.h
@@ -219,7 +219,7 @@ struct Vehicle {
int32 top_coord;
int32 right_coord;
int32 bottom_coord;
- VehicleID next_hash;
+ Vehicle *next_hash;
// Related to age and service time
Date age; // Age in days