changeset 14974:d21b5153e575 draft

(svn r19584) -Fix [FS#3744]: Crash when pressing 'h' (non-stop) in the order window of a ship or aircraft
author rubidium <rubidium@openttd.org>
date Thu, 08 Apr 2010 15:29:20 +0000
parents 156ee363e46f
children 30a0abfe85ca
files src/order_gui.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -621,6 +621,8 @@
 	 */
 	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);