summaryrefslogtreecommitdiff
path: root/src/order_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r--src/order_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp
index d23648383..b1889a511 100644
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -835,8 +835,9 @@ public:
break;
default:
- if (!gui_scope) break;
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);
/* Moving an order. If one of these is INVALID_VEH_ORDER_ID, then