Fix order backup not copying dispatch schedules when not enabled
See: #559
This commit is contained in:
@@ -1432,7 +1432,7 @@ void InsertOrder(Vehicle *v, Order *new_o, VehicleOrderID sel_ord)
|
||||
static CommandCost DecloneOrder(Vehicle *dst, DoCommandFlag flags)
|
||||
{
|
||||
if (flags & DC_EXEC) {
|
||||
/* Clear cheduled dispatch flag if any */
|
||||
/* Clear scheduled dispatch flag if any */
|
||||
if (HasBit(dst->vehicle_flags, VF_SCHEDULED_DISPATCH)) {
|
||||
ClrBit(dst->vehicle_flags, VF_SCHEDULED_DISPATCH);
|
||||
}
|
||||
|
Reference in New Issue
Block a user