(svn r6975) Use the pool macros for the Vehicle pool

This commit is contained in:
tron
2006-10-28 10:55:59 +00:00
parent bb6818aa5c
commit fd9e71999b
6 changed files with 20 additions and 40 deletions

2
date.c
View File

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