Codechange: Un-bitstuff order commands.

This commit is contained in:
Michael Lutz
2021-11-02 22:58:40 +01:00
parent de45a8729c
commit 211c630cbe
10 changed files with 106 additions and 131 deletions

View File

@@ -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;