diff options
author | frosch <frosch@openttd.org> | 2015-05-03 10:33:26 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2015-05-03 10:33:26 +0000 |
commit | c2b6a9bb56e14f775d178c13950a4ff74d511bf9 (patch) | |
tree | 763af67de1aa7da7db741edb979a599bfd9931ed | |
parent | 386e2ad14a892c633ea453da3260f6337f059867 (diff) | |
download | openttd-c2b6a9bb56e14f775d178c13950a4ff74d511bf9.tar.xz |
(svn r27267) -Change: [NewGRF] Translate industry variable A6.
-rw-r--r-- | src/newgrf_industries.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp index a7ae4c01f..bafa393d3 100644 --- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -354,7 +354,7 @@ static uint32 GetCountAndDistanceOfClosestInstance(byte param_setID, byte layout case 0xA4: return this->industry->last_month_transported[1]; case 0xA5: return GB(this->industry->last_month_transported[1], 8, 8); - case 0xA6: return this->industry->type; + case 0xA6: return indspec->grf_prop.local_id; case 0xA7: return this->industry->founder; case 0xA8: return this->industry->random_colour; case 0xA9: return Clamp(this->industry->last_prod_year - ORIGINAL_BASE_YEAR, 0, 255); |