diff options
author | KUDr <KUDr@openttd.org> | 2006-10-07 20:31:38 +0000 |
---|---|---|
committer | KUDr <KUDr@openttd.org> | 2006-10-07 20:31:38 +0000 |
commit | 64c0fe7e99158380279f3a5550fc01925b3d1a4c (patch) | |
tree | d321b365617c58f98a8806f52067e5a5aba4aaf8 | |
parent | af0264478aca008798fe8ca9d4b8199fe2362eb7 (diff) | |
download | openttd-64c0fe7e99158380279f3a5550fc01925b3d1a4c.tar.xz |
(svn r6683) -Fix: '<' signed unsigned mismatch produced by VC8
-rw-r--r-- | train_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/train_gui.c b/train_gui.c index 0782e3874..3ad4ea173 100644 --- a/train_gui.c +++ b/train_gui.c @@ -372,7 +372,7 @@ static void NewRailVehicleWndProc(Window *w, WindowEvent *e) switch (e->we.click.widget) { case BUILD_TRAIN_WIDGET_LIST: { uint i = ((e->we.click.pt.y - 14) / 14) + w->vscroll.pos; - if (i < WP(w,buildtrain_d).num_engines + WP(w,buildtrain_d).num_wagons) { + if (i < (uint)(WP(w,buildtrain_d).num_engines + WP(w,buildtrain_d).num_wagons)) { if (i < WP(w,buildtrain_d).num_engines && HASBIT(WP(w,buildtrain_d).show_engine_wagon, 0)) { WP(w,buildtrain_d).sel_engine = WP(w,buildtrain_d).engines[i]; } else { |