summaryrefslogtreecommitdiff
path: root/date.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-10-28 10:55:59 +0000
committertron <tron@openttd.org>2006-10-28 10:55:59 +0000
commit953344fdccabf547946eede684e588226f2c080e (patch)
tree8b0e233f3a0470fc60d6453aee27da317a3f2692 /date.c
parentef862a2973c0aa13932edc5d446ed04f7ad110c9 (diff)
downloadopenttd-953344fdccabf547946eede684e588226f2c080e.tar.xz
(svn r6975) Use the pool macros for the Vehicle pool
Diffstat (limited to 'date.c')
-rw-r--r--date.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/date.c b/date.c
index c9b02d013..8401baa31 100644
--- a/date.c
+++ b/date.c
@@ -196,7 +196,7 @@ static const Month _autosave_months[] = {
*/
static void RunVehicleDayProc(uint daytick)
{
- uint total = _vehicle_pool.total_items;
+ uint total = GetVehiclePoolSize();
uint i;
for (i = daytick; i < total; i += DAY_TICKS) {