(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

View File

@@ -1253,7 +1253,7 @@ static void *IntToReference(uint index, SLRefType rt)
return GetOrder(index);
}
case REF_VEHICLE: {
if (!AddBlockIfNeeded(&_vehicle_pool, index))
if (!AddBlockIfNeeded(&_Vehicle_pool, index))
error("Vehicles: failed loading savegame: too many vehicles");
return GetVehicle(index);
}
@@ -1286,7 +1286,7 @@ static void *IntToReference(uint index, SLRefType rt)
if (index == INVALID_VEHICLE)
return NULL;
if (!AddBlockIfNeeded(&_vehicle_pool, index))
if (!AddBlockIfNeeded(&_Vehicle_pool, index))
error("Vehicles: failed loading savegame: too many vehicles");
return GetVehicle(index);
}