summaryrefslogtreecommitdiff
path: root/src/station_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-04 18:30:10 +0000
committerrubidium <rubidium@openttd.org>2010-01-04 18:30:10 +0000
commit3e131e2fece740591d9187e19789a34b36c763fa (patch)
treeeff6d495176fe6d806e6990f5faa5c7ecb5a05e1 /src/station_gui.cpp
parent87466a4ed091035b758ef981e6600e2b03cbfe30 (diff)
downloadopenttd-3e131e2fece740591d9187e19789a34b36c763fa.tar.xz
(svn r18718) -Codechange: make a wrapper macro for looping TileAreas
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r--src/station_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp
index 9843e16f6..104a53c72 100644
--- a/src/station_gui.cpp
+++ b/src/station_gui.cpp
@@ -1211,7 +1211,7 @@ static const T *FindStationsNearby(TileArea ta, bool distant_join)
_deleted_stations_nearby.Clear();
/* Check the inside, to return, if we sit on another station */
- TILE_LOOP(t, ta.w, ta.h, ta.tile) {
+ TILE_AREA_LOOP(t, ta) {
if (t < MapSize() && IsTileType(t, MP_STATION) && T::IsValidID(GetStationIndex(t))) return T::GetByTile(t);
}