From 78569bf9e37c8f223dffe9851128d77649aacfba Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 8 Apr 2010 15:29:20 +0000 Subject: [PATCH] (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(+) diff --git a/src/order_gui.cpp b/src/order_gui.cpp index bad433a081..5030d003ae 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);