src/waypoint.cpp
changeset 8836 f6f1ea3d7e93
parent 8787 41d9d5adbe87
child 8847 426dd2d582e7
--- 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;
 			}