diff options
author | frosch <frosch@openttd.org> | 2012-09-01 19:36:15 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-09-01 19:36:15 +0000 |
commit | 6bc5d57fdd5995a0490c69609e223b15840b7f37 (patch) | |
tree | e45f3a8e765fc0d2839dc8ecb9cacf4f9e8f7d72 | |
parent | 468d232ef4c5d7199d20c545427b69708b790ff0 (diff) | |
download | openttd-6bc5d57fdd5995a0490c69609e223b15840b7f37.tar.xz |
(svn r24506) -Fix: Airport variables 60 to 65 an 69 used the wrong CTT for translations. (Alberth)
-rw-r--r-- | src/newgrf_station.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index cea387879..08f8e7932 100644 --- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -408,7 +408,7 @@ uint32 Station::GetNewGRFVariable(const ResolverObject *object, byte variable, b /* Handle cargo variables with parameter, 0x60 to 0x65 and 0x69 */ if ((variable >= 0x60 && variable <= 0x65) || variable == 0x69) { - CargoID c = GetCargoTranslation(parameter, object->u.station.statspec->grf_prop.grffile); + CargoID c = GetCargoTranslation(parameter, object->grffile); if (c == CT_INVALID) return 0; const GoodsEntry *ge = &this->goods[c]; |