diff -r 8fa962d90b63 -r f6f1ea3d7e93 src/waypoint.cpp --- a/src/waypoint.cpp Sat Apr 05 21:45:05 2008 +0000 +++ b/src/waypoint.cpp Sat Apr 05 23:36:54 2008 +0000 @@ -236,7 +236,7 @@ FOR_ALL_VEHICLES(v) { if (v->type == VEH_TRAIN && v->First() == v && - v->current_order.type == OT_GOTO_WAYPOINT && + v->current_order.IsType(OT_GOTO_WAYPOINT) && v->dest_tile == wp->xy) { v->dest_tile = tile; }