diff options
author | smatz <smatz@openttd.org> | 2009-07-16 19:00:13 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-07-16 19:00:13 +0000 |
commit | 1f29e38b8372484d51d852b89fc957eb53635ecb (patch) | |
tree | da4a251ac74e87e72a2857233069790f991914f6 /src/misc_gui.cpp | |
parent | b6889daf8d11b083358a26eea3f633942e2e50e4 (diff) | |
download | openttd-1f29e38b8372484d51d852b89fc957eb53635ecb.tar.xz |
(svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get()
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 459ef5f36..ccf557dfc 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -240,10 +240,10 @@ public: /* If the accepted value is less than 8, show it in 1/8:ths */ if (acceptance[i] < 8) { SetDParam(0, acceptance[i]); - SetDParam(1, GetCargo(i)->name); + SetDParam(1, CargoSpec::Get(i)->name); strp = GetString(strp, STR_LAND_AREA_INFORMATION_CARGO_EIGHTS, lastof(this->landinfo_data[LAND_INFO_MULTICENTER_LINE])); } else { - strp = GetString(strp, GetCargo(i)->name, lastof(this->landinfo_data[LAND_INFO_MULTICENTER_LINE])); + strp = GetString(strp, CargoSpec::Get(i)->name, lastof(this->landinfo_data[LAND_INFO_MULTICENTER_LINE])); } } } @@ -834,7 +834,7 @@ static int DrawStationCoverageText(const CargoArray &cargos, *b++ = ','; *b++ = ' '; } - b = InlineString(b, GetCargo(i)->name); + b = InlineString(b, CargoSpec::Get(i)->name); } } |