summaryrefslogtreecommitdiff
path: root/src/depot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/depot.cpp')
-rw-r--r--src/depot.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/depot.cpp b/src/depot.cpp
index d241caf72..0f21dc710 100644
--- a/src/depot.cpp
+++ b/src/depot.cpp
@@ -17,10 +17,10 @@ INSTANTIATE_POOL_METHODS(Depot)
/**
* Gets a depot from a tile
- *
+ * @param tile tile with depot
* @return Returns the depot if the tile had a depot, else it returns NULL
*/
-Depot *GetDepotByTile(TileIndex tile)
+/* static */ Depot *Depot::GetByTile(TileIndex tile)
{
/* A ship depot is multiple tiles. The north most tile is
* always the ->xy tile, so make sure we always look for