From fb364e4426d23a84aa3f36a594ece73ddc0fed70 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 8 Apr 2010 15:29:20 +0000 Subject: (svn r19584) -Fix [FS#3744]: Crash when pressing 'h' (non-stop) in the order window of a ship or aircraft --- src/order_gui.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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); -- cgit v1.2.3-54-g00ecf