diff options
author | peter1138 <peter1138@openttd.org> | 2007-03-21 13:19:01 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-03-21 13:19:01 +0000 |
commit | d7f56f1550ad463c6584595675dbebf745c30a78 (patch) | |
tree | e15177888ccaf427ebf30cc793b6da2908c47a8f /src/graph_gui.cpp | |
parent | a9651a8b8f1e9b1f6524721a43e58a2339fc8d61 (diff) | |
download | openttd-d7f56f1550ad463c6584595675dbebf745c30a78.tar.xz |
(svn r9388) -Codechange: variable scope and type, and standardify all CargoID loops.
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 f03e89d47..7e91666f8 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -721,7 +721,7 @@ static void CargoPaymentRatesWndProc(Window *w, WindowEvent *e) gd.x_values_increment = 10; uint i = 0; - for (CargoID c = 0; c != NUM_CARGO; c++) { + for (CargoID c = 0; c < NUM_CARGO; c++) { const CargoSpec *cs = GetCargo(c); if (!cs->IsValid()) continue; @@ -791,7 +791,7 @@ void ShowCargoPaymentRates() /* Count the number of active cargo types */ uint num_active = 0; - for (CargoID c = 0; c != NUM_CARGO; c++) { + for (CargoID c = 0; c < NUM_CARGO; c++) { if (GetCargo(c)->IsValid()) num_active++; } |