From e231ac60b31220d519c11f809c69aaecf335d1de Mon Sep 17 00:00:00 2001 From: matthijs Date: Tue, 5 Dec 2006 16:41:13 +0000 Subject: (svn r7374) - CodeChange: Replace call to GetVehiclePoolSize() by GetMaxVehicleIndex(). --- date.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3-70-g09d2