(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
This commit is contained in:
@@ -24,12 +24,12 @@ struct Depot : PoolItem<Depot, DepotID, &_Depot_pool> {
|
||||
|
||||
static inline bool IsValidDepotID(DepotID index)
|
||||
{
|
||||
return index < GetDepotPoolSize() && GetDepot(index)->IsValid();
|
||||
return index < GetDepotPoolSize() && Depot::Get(index)->IsValid();
|
||||
}
|
||||
|
||||
Depot *GetDepotByTile(TileIndex tile);
|
||||
|
||||
#define FOR_ALL_DEPOTS_FROM(d, start) for (d = GetDepot(start); d != NULL; d = (d->index + 1U < GetDepotPoolSize()) ? GetDepot(d->index + 1U) : NULL) if (d->IsValid())
|
||||
#define FOR_ALL_DEPOTS_FROM(d, start) for (d = Depot::Get(start); d != NULL; d = (d->index + 1U < GetDepotPoolSize()) ? Depot::Get(d->index + 1U) : NULL) if (d->IsValid())
|
||||
#define FOR_ALL_DEPOTS(d) FOR_ALL_DEPOTS_FROM(d, 0)
|
||||
|
||||
#endif /* DEPOT_BASE_H */
|
||||
|
Reference in New Issue
Block a user