date.c
changeset 4972 c7f92c6b74e4
parent 4830 668bcb0a30b2
child 5249 ebbf7f766cea
--- a/date.c	Sat Oct 28 10:55:26 2006 +0000
+++ b/date.c	Sat Oct 28 10:55:59 2006 +0000
@@ -196,7 +196,7 @@
  */
 static void RunVehicleDayProc(uint daytick)
 {
-	uint total = _vehicle_pool.total_items;
+	uint total = GetVehiclePoolSize();
 	uint i;
 
 	for (i = daytick; i < total; i += DAY_TICKS) {