summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatthijs <matthijs@openttd.org>2006-12-05 16:41:13 +0000
committermatthijs <matthijs@openttd.org>2006-12-05 16:41:13 +0000
commite231ac60b31220d519c11f809c69aaecf335d1de (patch)
tree399c88ed349532e3d009b9e801aae6feecb2ae4d
parentcc2c2a0fb178b9a3158db8f01eab1b7ba85e1388 (diff)
downloadopenttd-e231ac60b31220d519c11f809c69aaecf335d1de.tar.xz
(svn r7374) - CodeChange: Replace call to GetVehiclePoolSize() by GetMaxVehicleIndex().
-rw-r--r--date.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/date.c b/date.c
index 8401baa31..631e88ba3 100644
--- a/date.c
+++ b/date.c
@@ -196,7 +196,7 @@ static const Month _autosave_months[] = {
*/
static void RunVehicleDayProc(uint daytick)
{
- uint total = GetVehiclePoolSize();
+ uint total = GetMaxVehicleIndex() + 1;
uint i;
for (i = daytick; i < total; i += DAY_TICKS) {