From 05c695a647a3637925d24e4062b0cd4adcd1c851 Mon Sep 17 00:00:00 2001 From: smatz Date: Wed, 24 Jun 2009 19:26:41 +0000 Subject: (svn r16646) -Codechange: rename GetDepotByTile() to Depot::GetByTile() --- src/depot_base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/depot_base.h') diff --git a/src/depot_base.h b/src/depot_base.h index f8c7270e8..9fa38fea7 100644 --- a/src/depot_base.h +++ b/src/depot_base.h @@ -19,9 +19,9 @@ struct Depot : DepotPool::PoolItem<&_depot_pool> { Depot(TileIndex xy = INVALID_TILE) : xy(xy) {} ~Depot(); -}; -Depot *GetDepotByTile(TileIndex tile); + static Depot *GetByTile(TileIndex tile); +}; #define FOR_ALL_DEPOTS_FROM(var, start) FOR_ALL_ITEMS_FROM(Depot, depot_index, var, start) #define FOR_ALL_DEPOTS(var) FOR_ALL_DEPOTS_FROM(var, 0) -- cgit v1.2.3-70-g09d2