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
commit49a515f210851b87baac5c972b98c7ea3c1a273c (patch)
treec202f40607a987f7e038031e7d1b0b5ba822c84a /src/order_cmd.cpp
parentb91781b715272c0248b766d4e92da812a3c203ee (diff)
downloadopenttd-49a515f210851b87baac5c972b98c7ea3c1a273c.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;