diff options
Diffstat (limited to 'rail_gui.c')
-rw-r--r-- | rail_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_gui.c b/rail_gui.c index 071bcedc9..f8f7f48de 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -689,7 +689,7 @@ static void StationBuildWndProc(Window *w, WindowEvent *e) uint16 i; uint y = 35; - for (i = w->vscroll.pos; i < _railstation.station_count && i < w->vscroll.pos + w->vscroll.cap; i++) { + for (i = w->vscroll.pos; i < _railstation.station_count && i < (uint)(w->vscroll.pos + w->vscroll.cap); i++) { const StationSpec *statspec = GetCustomStationSpec(_railstation.station_class, i); if (statspec != NULL && statspec->name != 0) { |