Changeset - r7461:c9744ab40467
[Not reviewed]
master
0 1 0
belugas - 17 years ago 2007-08-22 00:59:46
belugas@openttd.org
(svn r10962) -Codechange: protect yourself against an illicit substitution
1 file changed with 5 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/industry_cmd.cpp
Show inline comments
 
@@ -274,9 +274,11 @@ static void DrawTile_Industry(TileInfo *
 
		} else {
 
			/* No sprite group (or no valid one) found, meaning no graphics associated.
 
			 * Use the substitute one instead */
 
			gfx = indts->grf_prop.subst_id;
 
			/* And point the industrytile spec accordingly */
 
			indts = GetIndustryTileSpec(indts->grf_prop.subst_id);
 
			if (indts->grf_prop.subst_id != INVALID_INDUSTRYTILE) {
 
				gfx = indts->grf_prop.subst_id;
 
				/* And point the industrytile spec accordingly */
 
				indts = GetIndustryTileSpec(gfx);
 
			}
 
		}
 
	}
 

	
0 comments (0 inline, 0 general)