mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
Fix duplicate order not always preserving colour
This commit is contained in:
parent
38e2605c14
commit
ea85bbda97
@ -409,7 +409,7 @@ void Order::AssignOrder(const Order &other)
|
||||
|
||||
if (other.extra != nullptr && (this->GetUnloadType() == OUFB_CARGO_TYPE_UNLOAD || this->GetLoadType() == OLFB_CARGO_TYPE_LOAD
|
||||
|| (this->IsType(OT_LABEL) && this->GetLabelSubType() == OLST_TEXT)
|
||||
|| other.extra->xdata != 0 || other.extra->xdata2 != 0 || other.extra->xflags != 0 || other.extra->dispatch_index != 0)) {
|
||||
|| other.extra->xdata != 0 || other.extra->xdata2 != 0 || other.extra->xflags != 0 || other.extra->dispatch_index != 0 || other.extra->colour != 0)) {
|
||||
this->AllocExtraInfo();
|
||||
*(this->extra) = *(other.extra);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user