summaryrefslogtreecommitdiff
path: root/src/timetable_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/timetable_gui.cpp')
-rw-r--r--src/timetable_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/timetable_gui.cpp b/src/timetable_gui.cpp
index 791e3312e..7abe4f4f0 100644
--- a/src/timetable_gui.cpp
+++ b/src/timetable_gui.cpp
@@ -271,7 +271,8 @@ struct TimetableWindow : Window {
break;
default: {
- if (!gui_scope) break;
+ if (gui_scope) break; // only do this once; from command scope
+
/* Moving an order. If one of these is INVALID_VEH_ORDER_ID, then
* the order is being created / removed */
if (this->sel_index == -1) break;