mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-04 05:15:21 +00:00
(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:
parent
7f531267dc
commit
fb364e4426
@ -621,6 +621,8 @@ private:
|
|||||||
*/
|
*/
|
||||||
void OrderClick_Nonstop(int non_stop)
|
void OrderClick_Nonstop(int non_stop)
|
||||||
{
|
{
|
||||||
|
if (this->vehicle->type != VEH_TRAIN && this->vehicle->type != VEH_ROAD) return;
|
||||||
|
|
||||||
VehicleOrderID sel_ord = this->OrderGetSel();
|
VehicleOrderID sel_ord = this->OrderGetSel();
|
||||||
const Order *order = this->vehicle->GetOrder(sel_ord);
|
const Order *order = this->vehicle->GetOrder(sel_ord);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user