summaryrefslogtreecommitdiff
path: root/date.c
diff options
context:
space:
mode:
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) {