summaryrefslogtreecommitdiff
path: root/src/industry_cmd.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/industry_cmd.cpp
parent87466a4ed091035b758ef981e6600e2b03cbfe30 (diff)
downloadopenttd-3e131e2fece740591d9187e19789a34b36c763fa.tar.xz
(svn r18718) -Codechange: make a wrapper macro for looping TileAreas
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r--src/industry_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index 8527cd3fd..82c1ef855 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -144,7 +144,7 @@ Industry::~Industry()
* This means that we do not have to clear tiles either. */
if (this->location.w == 0) return;
- TILE_LOOP(tile_cur, this->location.w, this->location.h, this->location.tile) {
+ TILE_AREA_LOOP(tile_cur, this->location) {
if (IsTileType(tile_cur, MP_INDUSTRY)) {
if (GetIndustryIndex(tile_cur) == this->index) {
/* MakeWaterKeepingClass() can also handle 'land' */