diff options
author | matthijs <matthijs@openttd.org> | 2006-12-05 16:41:13 +0000 |
---|---|---|
committer | matthijs <matthijs@openttd.org> | 2006-12-05 16:41:13 +0000 |
commit | e231ac60b31220d519c11f809c69aaecf335d1de (patch) | |
tree | 399c88ed349532e3d009b9e801aae6feecb2ae4d | |
parent | cc2c2a0fb178b9a3158db8f01eab1b7ba85e1388 (diff) | |
download | openttd-e231ac60b31220d519c11f809c69aaecf335d1de.tar.xz |
(svn r7374) - CodeChange: Replace call to GetVehiclePoolSize() by GetMaxVehicleIndex().
-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) { |