--- 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) {