diff options
Diffstat (limited to 'order_cmd.c')
-rw-r--r-- | order_cmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/order_cmd.c b/order_cmd.c index 2ce7da4d6..4627dc679 100644 --- a/order_cmd.c +++ b/order_cmd.c @@ -177,7 +177,8 @@ int32 CmdModifyOrder(int x, int y, uint32 flags, uint32 p1, uint32 p2) sched = &v->schedule_ptr[sel]; if (sched->type != OT_GOTO_STATION && - (sched->type != OT_GOTO_DEPOT || (p2 >> 8) == 1)) + (sched->type != OT_GOTO_DEPOT || (p2 >> 8) == 1) && + (sched->type != OT_GOTO_WAYPOINT || (p2 >> 8) != 2)) return CMD_ERROR; if (flags & DC_EXEC) { |