From 6bc5d57fdd5995a0490c69609e223b15840b7f37 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 1 Sep 2012 19:36:15 +0000 Subject: [PATCH] (svn r24506) -Fix: Airport variables 60 to 65 an 69 used the wrong CTT for translations. (Alberth) --- src/newgrf_station.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index cea3878795..08f8e79328 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];