(svn r12630) -Fix (r12600): Missing 'break' made it impossible to add waypoints to vehicle orders.
authormaedhros
Tue, 08 Apr 2008 16:15:31 +0000
changeset 8863 8d3d2e9a89be
parent 8862 f72f256c0259
child 8864 76e142d103e9
(svn r12630) -Fix (r12600): Missing 'break' made it impossible to add waypoints to vehicle orders.
src/order_cmd.cpp
--- a/src/order_cmd.cpp	Tue Apr 08 15:48:32 2008 +0000
+++ b/src/order_cmd.cpp	Tue Apr 08 16:15:31 2008 +0000
@@ -382,6 +382,8 @@
 			 * [non-stop]
 			 * non-stop orders (if any) are only valid for trains */
 			if (new_order.GetNonStopType() != ONSF_STOP_EVERYWHERE && v->type != VEH_TRAIN) return CMD_ERROR;
+
+			break;
 		}
 
 		default: return CMD_ERROR;