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 | 9fc9383c8188186c4ec36146108d05df0948ba22 (patch) | |
tree | d321b365617c58f98a8806f52067e5a5aba4aaf8 | |
parent | 0b7bffd40f93d29f0dec14f0eb8a388a16a682e4 (diff) | |
download | openttd-9fc9383c8188186c4ec36146108d05df0948ba22.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 { |