Fix updating selected order when changing order list

This commit is contained in:
Jonathan G Rennison
2020-10-18 17:06:08 +01:00
parent 327c088f29
commit c0c0c9c340

View File

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