diff options
author | rubidium <rubidium@openttd.org> | 2006-12-04 13:46:03 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-12-04 13:46:03 +0000 |
commit | 756d6a6efb64d0025e24fc4ea98b37d93d17868c (patch) | |
tree | ff3ed6156af7a65ae49ead114c7f736d5826790b /order_gui.c | |
parent | 11474c26d7ebf2973081f15d7f8a4c445262f0bc (diff) | |
download | openttd-756d6a6efb64d0025e24fc4ea98b37d93d17868c.tar.xz |
(svn r7355) -Codechange: replace 'for (i = 0; w->widget[i].type != WWT_TYPE; i++)'-type for loops with 'for (i = 0; i < w->widget_count; i++)'-type for loops
Diffstat (limited to 'order_gui.c')
-rw-r--r-- | order_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/order_gui.c b/order_gui.c index 52061507e..0232fc49c 100644 --- a/order_gui.c +++ b/order_gui.c @@ -552,8 +552,8 @@ static void OrdersWndProc(Window *w, WindowEvent *e) case WE_TIMEOUT: { // handle button unclick ourselves... // unclick all buttons except for the 'goto' button (7), which is 'persistent' - int i; - for (i = 0; w->widget[i].type != WWT_LAST; i++) { + uint i; + for (i = 0; i < w->widget_count; i++) { if (IsWindowWidgetLowered(w, i) && i != 7) { RaiseWindowWidget(w, i); InvalidateWidget(w, i); |