mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-12 17:19:09 +00:00
(svn r12630) -Fix (r12600): Missing 'break' made it impossible to add waypoints to vehicle orders.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user