summaryrefslogtreecommitdiff
path: root/vehicle.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-03-24 13:59:44 +0000
committertruelight <truelight@openttd.org>2005-03-24 13:59:44 +0000
commit88ef277dc3678610bf2b47437dcbcc00f6fbe333 (patch)
tree0b128e45836acd883ea7d555799b51783e559d1c /vehicle.c
parentccd6a0614f57518fffec7bd5fa4c07e9eb1bfd2d (diff)
downloadopenttd-88ef277dc3678610bf2b47437dcbcc00f6fbe333.tar.xz
(svn r2041) -Fix: not all vehicles did get a day_proc call (because of rounding errors)
Diffstat (limited to 'vehicle.c')
-rw-r--r--vehicle.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/vehicle.c b/vehicle.c
index 3aaea4497..56ed63be7 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -2093,9 +2093,7 @@ static void Load_VEHS(void)
}
}
- /* This is to ensure all pointers are within the limits of
- _vehicles_size */
- if (_vehicle_id_ctr_day >= GetVehiclePoolSize())
+ if (_sl.full_version < 0x0B01)
_vehicle_id_ctr_day = 0;
}