diff options
Diffstat (limited to 'order_cmd.c')
-rw-r--r-- | order_cmd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/order_cmd.c b/order_cmd.c index 1e074bcd4..3a40e2241 100644 --- a/order_cmd.c +++ b/order_cmd.c @@ -67,8 +67,10 @@ static void SwapOrders(Order *order1, Order *order2) Order temp_order; temp_order = *order1; - *order1 = *order2; - *order2 = temp_order; + AssignOrder(order1, *order2); + order1->next = order2->next; + AssignOrder(order2, temp_order); + order2->next = temp_order.next; } /** |