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/graph_gui.cpp | |
parent | b6889daf8d11b083358a26eea3f633942e2e50e4 (diff) | |
download | openttd-1f29e38b8372484d51d852b89fc957eb53635ecb.tar.xz |
(svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get()
Diffstat (limited to 'src/graph_gui.cpp')
-rw-r--r-- | src/graph_gui.cpp | 4 |
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 |