summaryrefslogtreecommitdiff
path: root/src/order_backup.cpp
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-11-02 22:58:40 +0100
committerMichael Lutz <michi@icosahedron.de>2021-12-16 22:28:32 +0100
commit211c630cbe4185a2adf8b8cd8f52ca58f8bf17ed (patch)
tree89290b522a2852d71e9a71c43b6d581fb8d1d36d /src/order_backup.cpp
parentde45a8729c0f1ab965e4adf4e6ad7095a4a678c8 (diff)
downloadopenttd-211c630cbe4185a2adf8b8cd8f52ca58f8bf17ed.tar.xz
Codechange: Un-bitstuff order commands.
Diffstat (limited to 'src/order_backup.cpp')
-rw-r--r--src/order_backup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_backup.cpp b/src/order_backup.cpp
index 69ae6507d..1818029f2 100644
--- a/src/order_backup.cpp
+++ b/src/order_backup.cpp
@@ -75,7 +75,7 @@ void OrderBackup::DoRestore(Vehicle *v)
{
/* If we had shared orders, recover that */
if (this->clone != nullptr) {
- Command<CMD_CLONE_ORDER>::Do(DC_EXEC, 0, v->index | CO_SHARE << 30, this->clone->index, {});
+ Command<CMD_CLONE_ORDER>::Do(DC_EXEC, CO_SHARE, v->index, this->clone->index);
} else if (this->orders != nullptr && OrderList::CanAllocateItem()) {
v->orders.list = new OrderList(this->orders, v);
this->orders = nullptr;