summaryrefslogtreecommitdiff
path: root/src/town_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/town_map.h')
-rw-r--r--src/town_map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_map.h b/src/town_map.h
index b0653a1cd..e1007a030 100644
--- a/src/town_map.h
+++ b/src/town_map.h
@@ -40,7 +40,7 @@ static inline void SetTownIndex(TileIndex t, TownID index)
*/
static inline Town *GetTownByTile(TileIndex t)
{
- return GetTown(GetTownIndex(t));
+ return Town::Get(GetTownIndex(t));
}
/**