summaryrefslogtreecommitdiff
path: root/station_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'station_gui.c')
-rw-r--r--station_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/station_gui.c b/station_gui.c
index 2244386a4..48d3fdf6c 100644
--- a/station_gui.c
+++ b/station_gui.c
@@ -392,7 +392,7 @@ static void DrawStationViewWindow(Window *w)
y += 10;
}
}
- } while (pos > -5 && ++i != 12);
+ } while (pos > -5 && ++i != NUM_CARGO);
if (IsWindowOfPrototype(w, _station_view_widgets)) {
char *b = _userstring;