summaryrefslogtreecommitdiff
path: root/src/vehicle_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r--src/vehicle_base.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h
index a1d451d32..9d611c01a 100644
--- a/src/vehicle_base.h
+++ b/src/vehicle_base.h
@@ -649,15 +649,15 @@ static inline VehicleID GetMaxVehicleIndex()
* _really_ returns the highest index. Now it just returns
* the next safe value we are sure about everything is below.
*/
- return GetVehiclePoolSize() - 1;
+ return Vehicle::GetPoolSize() - 1;
}
static inline uint GetNumVehicles()
{
- return GetVehiclePoolSize();
+ return Vehicle::GetPoolSize();
}
-#define FOR_ALL_VEHICLES_FROM(v, start) for (v = Vehicle::Get(start); v != NULL; v = (v->index + 1U < GetVehiclePoolSize()) ? Vehicle::Get(v->index + 1) : NULL) if (v->IsValid())
+#define FOR_ALL_VEHICLES_FROM(v, start) for (v = Vehicle::Get(start); v != NULL; v = (v->index + 1U < Vehicle::GetPoolSize()) ? Vehicle::Get(v->index + 1) : NULL) if (v->IsValid())
#define FOR_ALL_VEHICLES(v) FOR_ALL_VEHICLES_FROM(v, 0)
/**
@@ -667,7 +667,7 @@ static inline uint GetNumVehicles()
*/
static inline bool IsValidVehicleID(uint index)
{
- return index < GetVehiclePoolSize() && Vehicle::Get(index)->IsValid();
+ return index < Vehicle::GetPoolSize() && Vehicle::Get(index)->IsValid();
}