Fix order backup not copying dispatch schedules when not enabled

See: #559
This commit is contained in:
Jonathan G Rennison
2023-07-01 02:17:10 +01:00
parent d09b504bc5
commit 28a764f319
3 changed files with 8 additions and 7 deletions

View File

@@ -56,4 +56,9 @@ void BaseConsist::CopyConsistPropertiesFrom(const BaseConsist *src)
} else {
ClrBit(this->vehicle_flags, VF_TIMETABLE_SEPARATION);
}
if (HasBit(src->vehicle_flags, VF_SCHEDULED_DISPATCH)) {
SetBit(this->vehicle_flags, VF_SCHEDULED_DISPATCH);
} else {
ClrBit(this->vehicle_flags, VF_SCHEDULED_DISPATCH);
}
}