(svn r19584) -Fix [FS#3744]: Crash when pressing 'h' (non-stop) in the order window of a ship or aircraft

This commit is contained in:
rubidium 2010-04-08 15:29:20 +00:00
parent 7f531267dc
commit fb364e4426
1 changed files with 2 additions and 0 deletions

View File

@ -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);