summaryrefslogtreecommitdiff
path: root/src/order_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-03-13 21:33:57 +0000
committerfrosch <frosch@openttd.org>2011-03-13 21:33:57 +0000
commit5689b3dbda6b3e4adee2c20e32d06a9e5a158c07 (patch)
treee0c452f1425e66657cb164a4c2eadc5ac7fd1765 /src/order_gui.cpp
parentdd208232770650342d681f50e801b1f2de03aa61 (diff)
downloadopenttd-5689b3dbda6b3e4adee2c20e32d06a9e5a158c07.tar.xz
(svn r22246) -Fix: Process order window invalidations for specific orders in command-scope.
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