changeset 19597:db80845cd991 draft

(svn r24506) -Fix: Airport variables 60 to 65 an 69 used the wrong CTT for translations. (Alberth)
author frosch <frosch@openttd.org>
date Sat, 01 Sep 2012 19:36:15 +0000
parents 4e967b4e320f
children ce5bb60100da
files src/newgrf_station.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/newgrf_station.cpp
+++ b/src/newgrf_station.cpp
@@ -408,7 +408,7 @@
 
 	/* 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];