src/industry_cmd.cpp
changeset 9714 5d785e184f2d
parent 9592 835ccfd13653
child 9718 4b7468076d31
--- a/src/industry_cmd.cpp	Fri Jul 25 19:50:40 2008 +0000
+++ b/src/industry_cmd.cpp	Fri Jul 25 22:37:34 2008 +0000
@@ -389,13 +389,18 @@
 static void GetTileDesc_Industry(TileIndex tile, TileDesc *td)
 {
 	const Industry *i = GetIndustryByTile(tile);
+	const IndustrySpec *is = GetIndustrySpec(i->type);
 
 	td->owner[0] = i->owner;
-	td->str = GetIndustrySpec(i->type)->name;
+	td->str = is->name;
 	if (!IsIndustryCompleted(tile)) {
 		SetDParamX(td->dparam, 0, td->str);
 		td->str = STR_2058_UNDER_CONSTRUCTION;
 	}
+
+	if (is->grf_prop.grffile != NULL) {
+		td->grf = GetGRFConfig(is->grf_prop.grffile->grfid)->name;
+	}
 }
 
 static CommandCost ClearTile_Industry(TileIndex tile, byte flags)