summaryrefslogtreecommitdiff
path: root/src/graph_gui.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-07-16 19:00:13 +0000
committersmatz <smatz@openttd.org>2009-07-16 19:00:13 +0000
commit1f29e38b8372484d51d852b89fc957eb53635ecb (patch)
treeda4a251ac74e87e72a2857233069790f991914f6 /src/graph_gui.cpp
parentb6889daf8d11b083358a26eea3f633942e2e50e4 (diff)
downloadopenttd-1f29e38b8372484d51d852b89fc957eb53635ecb.tar.xz
(svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get()
Diffstat (limited to 'src/graph_gui.cpp')
-rw-r--r--src/graph_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp
index 3a8f03967..19a7713c4 100644
--- a/src/graph_gui.cpp
+++ b/src/graph_gui.cpp
@@ -737,7 +737,7 @@ struct PaymentRatesGraphWindow : BaseGraphWindow {
{
uint num_active = 0;
for (CargoID c = 0; c < NUM_CARGO; c++) {
- if (GetCargo(c)->IsValid()) num_active++;
+ if (CargoSpec::Get(c)->IsValid()) num_active++;
}
/* Resize the window to fit the cargo types */
@@ -787,7 +787,7 @@ struct PaymentRatesGraphWindow : BaseGraphWindow {
uint i = 0;
for (CargoID c = 0; c < NUM_CARGO; c++) {
- const CargoSpec *cs = GetCargo(c);
+ const CargoSpec *cs = CargoSpec::Get(c);
if (!cs->IsValid()) continue;
/* Only draw labels for widgets that exist. If the widget doesn't