diff options
-rw-r--r-- | date.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |