summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/order_gui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp
index bad433a08..5030d003a 100644
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -621,6 +621,8 @@ private:
*/
void OrderClick_Nonstop(int non_stop)
{
+ if (this->vehicle->type != VEH_TRAIN && this->vehicle->type != VEH_ROAD) return;
+
VehicleOrderID sel_ord = this->OrderGetSel();
const Order *order = this->vehicle->GetOrder(sel_ord);