summaryrefslogtreecommitdiff
path: root/src/order_cmd.cpp
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2008-04-08 16:15:31 +0000
committermaedhros <maedhros@openttd.org>2008-04-08 16:15:31 +0000
commit85e5053b68c4861b51ff4ae377d4fee8ef2ffecf (patch)
treec202f40607a987f7e038031e7d1b0b5ba822c84a /src/order_cmd.cpp
parent96700d560560215ec24d283d774f7dbaa11c384c (diff)
downloadopenttd-85e5053b68c4861b51ff4ae377d4fee8ef2ffecf.tar.xz
(svn r12630) -Fix (r12600): Missing 'break' made it impossible to add waypoints to vehicle orders.
Diffstat (limited to 'src/order_cmd.cpp')
-rw-r--r--src/order_cmd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp
index f2583598b..884f54fe8 100644
--- a/src/order_cmd.cpp
+++ b/src/order_cmd.cpp
@@ -382,6 +382,8 @@ CommandCost CmdInsertOrder(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
* [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;