From c0c0c9c3401e9de6d5a382d0d7d2e9e1420feb0a Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 18 Oct 2020 17:06:08 +0100 Subject: [PATCH] Fix updating selected order when changing order list --- src/order_gui.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/order_gui.cpp b/src/order_gui.cpp index ba8ebf5afa..f27115c911 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -1656,11 +1656,9 @@ public: break; default: - if (data < 0) break; - if (gui_scope) break; // only do this once; from command scope - from = GB(data, 0, 8); - to = GB(data, 8, 8); + from = GB(data, 0, 16); + to = GB(data, 16, 16); /* Moving an order. If one of these is INVALID_VEH_ORDER_ID, then * the order is being created / removed */ if (this->selected_order == -1) break;