From 3e131e2fece740591d9187e19789a34b36c763fa Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 4 Jan 2010 18:30:10 +0000 Subject: (svn r18718) -Codechange: make a wrapper macro for looping TileAreas --- src/industry_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/industry_cmd.cpp') 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' */ -- cgit v1.2.3-70-g09d2